Skip to content

Commit

Permalink
rebuild fixtures
Browse files Browse the repository at this point in the history
Differential Revision: D54975949

fbshipit-source-id: 9e7f86a27a2d3c03c171048a26a9f0628b5ea122
  • Loading branch information
TJ Yin authored and facebook-github-bot committed Mar 16, 2024
1 parent 845c6d2 commit fd6b474
Show file tree
Hide file tree
Showing 39 changed files with 9,654 additions and 144 deletions.
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
}

}

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
}

}

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
}

}

Loading

0 comments on commit fd6b474

Please # to comment.