-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differential Revision: D54975949 fbshipit-source-id: 9e7f86a27a2d3c03c171048a26a9f0628b5ea122
- Loading branch information
1 parent
845c6d2
commit fd6b474
Showing
39 changed files
with
9,654 additions
and
144 deletions.
There are no files selected for viewing
151 changes: 151 additions & 0 deletions
151
...patch/out/android/gen-android/com/facebook/thrift/annotation/rust_deprecated/Adapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
/** | ||
* Autogenerated by Thrift | ||
* | ||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | ||
* @generated | ||
*/ | ||
package com.facebook.thrift.annotation.rust_deprecated; | ||
|
||
import java.util.List; | ||
import java.util.ArrayList; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
import java.util.Collections; | ||
import java.util.BitSet; | ||
import java.util.Arrays; | ||
import com.facebook.thrift.*; | ||
import com.facebook.thrift.annotations.*; | ||
import com.facebook.thrift.async.*; | ||
import com.facebook.thrift.meta_data.*; | ||
import com.facebook.thrift.server.*; | ||
import com.facebook.thrift.transport.*; | ||
import com.facebook.thrift.protocol.*; | ||
|
||
@SuppressWarnings({ "unused", "serial" }) | ||
public class Adapter implements TBase, java.io.Serializable, Cloneable { | ||
private static final TStruct STRUCT_DESC = new TStruct("Adapter"); | ||
private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1); | ||
|
||
public final String name; | ||
public static final int NAME = 1; | ||
|
||
public Adapter( | ||
String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* Performs a deep copy on <i>other</i>. | ||
*/ | ||
public Adapter(Adapter other) { | ||
if (other.isSetName()) { | ||
this.name = TBaseHelper.deepCopy(other.name); | ||
} else { | ||
this.name = null; | ||
} | ||
} | ||
|
||
public Adapter deepCopy() { | ||
return new Adapter(this); | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
// Returns true if field name is set (has been assigned a value) and false otherwise | ||
public boolean isSetName() { | ||
return this.name != null; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object _that) { | ||
if (_that == null) | ||
return false; | ||
if (this == _that) | ||
return true; | ||
if (!(_that instanceof Adapter)) | ||
return false; | ||
Adapter that = (Adapter)_that; | ||
|
||
if (!TBaseHelper.equalsNobinary(this.isSetName(), that.isSetName(), this.name, that.name)) { return false; } | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Arrays.deepHashCode(new Object[] {name}); | ||
} | ||
|
||
// This is required to satisfy the TBase interface, but can't be implemented on immutable struture. | ||
public void read(TProtocol iprot) throws TException { | ||
throw new TException("unimplemented in android immutable structure"); | ||
} | ||
|
||
public static Adapter deserialize(TProtocol iprot) throws TException { | ||
String tmp_name = null; | ||
TField __field; | ||
iprot.readStructBegin(); | ||
while (true) | ||
{ | ||
__field = iprot.readFieldBegin(); | ||
if (__field.type == TType.STOP) { | ||
break; | ||
} | ||
switch (__field.id) | ||
{ | ||
case NAME: | ||
if (__field.type == TType.STRING) { | ||
tmp_name = iprot.readString(); | ||
} else { | ||
TProtocolUtil.skip(iprot, __field.type); | ||
} | ||
break; | ||
default: | ||
TProtocolUtil.skip(iprot, __field.type); | ||
break; | ||
} | ||
iprot.readFieldEnd(); | ||
} | ||
iprot.readStructEnd(); | ||
|
||
Adapter _that; | ||
_that = new Adapter( | ||
tmp_name | ||
); | ||
_that.validate(); | ||
return _that; | ||
} | ||
|
||
public void write(TProtocol oprot) throws TException { | ||
validate(); | ||
|
||
oprot.writeStructBegin(STRUCT_DESC); | ||
if (this.name != null) { | ||
oprot.writeFieldBegin(NAME_FIELD_DESC); | ||
oprot.writeString(this.name); | ||
oprot.writeFieldEnd(); | ||
} | ||
oprot.writeFieldStop(); | ||
oprot.writeStructEnd(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return toString(1, true); | ||
} | ||
|
||
@Override | ||
public String toString(int indent, boolean prettyPrint) { | ||
return TBaseHelper.toStringHelper(this, indent, prettyPrint); | ||
} | ||
|
||
public void validate() throws TException { | ||
// check for required fields | ||
} | ||
|
||
} | ||
|
116 changes: 116 additions & 0 deletions
116
...res/patch/out/android/gen-android/com/facebook/thrift/annotation/rust_deprecated/Arc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/** | ||
* Autogenerated by Thrift | ||
* | ||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | ||
* @generated | ||
*/ | ||
package com.facebook.thrift.annotation.rust_deprecated; | ||
|
||
import java.util.List; | ||
import java.util.ArrayList; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
import java.util.Collections; | ||
import java.util.BitSet; | ||
import java.util.Arrays; | ||
import com.facebook.thrift.*; | ||
import com.facebook.thrift.annotations.*; | ||
import com.facebook.thrift.async.*; | ||
import com.facebook.thrift.meta_data.*; | ||
import com.facebook.thrift.server.*; | ||
import com.facebook.thrift.transport.*; | ||
import com.facebook.thrift.protocol.*; | ||
|
||
@SuppressWarnings({ "unused", "serial" }) | ||
public class Arc implements TBase, java.io.Serializable, Cloneable { | ||
private static final TStruct STRUCT_DESC = new TStruct("Arc"); | ||
|
||
|
||
public Arc() { | ||
} | ||
|
||
/** | ||
* Performs a deep copy on <i>other</i>. | ||
*/ | ||
public Arc(Arc other) { | ||
} | ||
|
||
public Arc deepCopy() { | ||
return new Arc(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object _that) { | ||
if (_that == null) | ||
return false; | ||
if (this == _that) | ||
return true; | ||
if (!(_that instanceof Arc)) | ||
return false; | ||
Arc that = (Arc)_that; | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Arrays.deepHashCode(new Object[] {}); | ||
} | ||
|
||
// This is required to satisfy the TBase interface, but can't be implemented on immutable struture. | ||
public void read(TProtocol iprot) throws TException { | ||
throw new TException("unimplemented in android immutable structure"); | ||
} | ||
|
||
public static Arc deserialize(TProtocol iprot) throws TException { | ||
TField __field; | ||
iprot.readStructBegin(); | ||
while (true) | ||
{ | ||
__field = iprot.readFieldBegin(); | ||
if (__field.type == TType.STOP) { | ||
break; | ||
} | ||
switch (__field.id) | ||
{ | ||
default: | ||
TProtocolUtil.skip(iprot, __field.type); | ||
break; | ||
} | ||
iprot.readFieldEnd(); | ||
} | ||
iprot.readStructEnd(); | ||
|
||
Arc _that; | ||
_that = new Arc( | ||
); | ||
_that.validate(); | ||
return _that; | ||
} | ||
|
||
public void write(TProtocol oprot) throws TException { | ||
validate(); | ||
|
||
oprot.writeStructBegin(STRUCT_DESC); | ||
oprot.writeFieldStop(); | ||
oprot.writeStructEnd(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return toString(1, true); | ||
} | ||
|
||
@Override | ||
public String toString(int indent, boolean prettyPrint) { | ||
return TBaseHelper.toStringHelper(this, indent, prettyPrint); | ||
} | ||
|
||
public void validate() throws TException { | ||
// check for required fields | ||
} | ||
|
||
} | ||
|
116 changes: 116 additions & 0 deletions
116
...res/patch/out/android/gen-android/com/facebook/thrift/annotation/rust_deprecated/Box.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/** | ||
* Autogenerated by Thrift | ||
* | ||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | ||
* @generated | ||
*/ | ||
package com.facebook.thrift.annotation.rust_deprecated; | ||
|
||
import java.util.List; | ||
import java.util.ArrayList; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
import java.util.Collections; | ||
import java.util.BitSet; | ||
import java.util.Arrays; | ||
import com.facebook.thrift.*; | ||
import com.facebook.thrift.annotations.*; | ||
import com.facebook.thrift.async.*; | ||
import com.facebook.thrift.meta_data.*; | ||
import com.facebook.thrift.server.*; | ||
import com.facebook.thrift.transport.*; | ||
import com.facebook.thrift.protocol.*; | ||
|
||
@SuppressWarnings({ "unused", "serial" }) | ||
public class Box implements TBase, java.io.Serializable, Cloneable { | ||
private static final TStruct STRUCT_DESC = new TStruct("Box"); | ||
|
||
|
||
public Box() { | ||
} | ||
|
||
/** | ||
* Performs a deep copy on <i>other</i>. | ||
*/ | ||
public Box(Box other) { | ||
} | ||
|
||
public Box deepCopy() { | ||
return new Box(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object _that) { | ||
if (_that == null) | ||
return false; | ||
if (this == _that) | ||
return true; | ||
if (!(_that instanceof Box)) | ||
return false; | ||
Box that = (Box)_that; | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Arrays.deepHashCode(new Object[] {}); | ||
} | ||
|
||
// This is required to satisfy the TBase interface, but can't be implemented on immutable struture. | ||
public void read(TProtocol iprot) throws TException { | ||
throw new TException("unimplemented in android immutable structure"); | ||
} | ||
|
||
public static Box deserialize(TProtocol iprot) throws TException { | ||
TField __field; | ||
iprot.readStructBegin(); | ||
while (true) | ||
{ | ||
__field = iprot.readFieldBegin(); | ||
if (__field.type == TType.STOP) { | ||
break; | ||
} | ||
switch (__field.id) | ||
{ | ||
default: | ||
TProtocolUtil.skip(iprot, __field.type); | ||
break; | ||
} | ||
iprot.readFieldEnd(); | ||
} | ||
iprot.readStructEnd(); | ||
|
||
Box _that; | ||
_that = new Box( | ||
); | ||
_that.validate(); | ||
return _that; | ||
} | ||
|
||
public void write(TProtocol oprot) throws TException { | ||
validate(); | ||
|
||
oprot.writeStructBegin(STRUCT_DESC); | ||
oprot.writeFieldStop(); | ||
oprot.writeStructEnd(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return toString(1, true); | ||
} | ||
|
||
@Override | ||
public String toString(int indent, boolean prettyPrint) { | ||
return TBaseHelper.toStringHelper(this, indent, prettyPrint); | ||
} | ||
|
||
public void validate() throws TException { | ||
// check for required fields | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.