Python thrift.protocol.fastbinary.encode_binary() Examples
The following are 30
code examples of thrift.protocol.fastbinary.encode_binary().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
thrift.protocol.fastbinary
, or try the search function
.
Example #1
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('StartServiceRequest') if self.cluster is not None: oprot.writeFieldBegin('cluster', TType.STRING, 1) oprot.writeString(self.cluster) oprot.writeFieldEnd() if self.services is not None: oprot.writeFieldBegin('services', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.services)) for iter80 in self.services: oprot.writeString(iter80) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #2
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('InstanceTypeInfo') if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() if self.cpu is not None: oprot.writeFieldBegin('cpu', TType.I32, 2) oprot.writeI32(self.cpu) oprot.writeFieldEnd() if self.ram is not None: oprot.writeFieldBegin('ram', TType.I32, 3) oprot.writeI32(self.ram) oprot.writeFieldEnd() if self.disk is not None: oprot.writeFieldBegin('disk', TType.I32, 4) oprot.writeI32(self.disk) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #3
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('AddInstanceGroupResponse') if self.instanceGroupId is not None: oprot.writeFieldBegin('instanceGroupId', TType.STRING, 1) oprot.writeString(self.instanceGroupId) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.clusterId is not None: oprot.writeFieldBegin('clusterId', TType.STRING, 3) oprot.writeString(self.clusterId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #4
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SliceRange') if self.start is not None: oprot.writeFieldBegin('start', TType.STRING, 1) oprot.writeString(self.start) oprot.writeFieldEnd() if self.finish is not None: oprot.writeFieldBegin('finish', TType.STRING, 2) oprot.writeString(self.finish) oprot.writeFieldEnd() if self.reversed is not None: oprot.writeFieldBegin('reversed', TType.BOOL, 3) oprot.writeBool(self.reversed) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 4) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #5
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('EMRUser') if self.developerId is not None: oprot.writeFieldBegin('developerId', TType.STRING, 1) oprot.writeString(self.developerId) oprot.writeFieldEnd() if self.clusterIds is not None: oprot.writeFieldBegin('clusterIds', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.clusterIds)) for iter6 in self.clusterIds: oprot.writeString(iter6) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #6
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Status') if self.state is not None: oprot.writeFieldBegin('state', TType.I32, 1) oprot.writeI32(self.state) oprot.writeFieldEnd() if self.stateChangeReason is not None: oprot.writeFieldBegin('stateChangeReason', TType.STRING, 2) oprot.writeString(self.stateChangeReason) oprot.writeFieldEnd() if self.timeline is not None: oprot.writeFieldBegin('timeline', TType.STRUCT, 3) self.timeline.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #7
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('ColumnOrSuperColumn') if self.column is not None: oprot.writeFieldBegin('column', TType.STRUCT, 1) self.column.write(oprot) oprot.writeFieldEnd() if self.super_column is not None: oprot.writeFieldBegin('super_column', TType.STRUCT, 2) self.super_column.write(oprot) oprot.writeFieldEnd() if self.counter_column is not None: oprot.writeFieldBegin('counter_column', TType.STRUCT, 3) self.counter_column.write(oprot) oprot.writeFieldEnd() if self.counter_super_column is not None: oprot.writeFieldBegin('counter_super_column', TType.STRUCT, 4) self.counter_super_column.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #8
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('CounterSuperColumn') if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() if self.columns is not None: oprot.writeFieldBegin('columns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.columns)) for iter13 in self.columns: iter13.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #9
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Column') if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 2) oprot.writeString(self.value) oprot.writeFieldEnd() if self.timestamp is not None: oprot.writeFieldBegin('timestamp', TType.I64, 3) oprot.writeI64(self.timestamp) oprot.writeFieldEnd() if self.ttl is not None: oprot.writeFieldBegin('ttl', TType.I32, 4) oprot.writeI32(self.ttl) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #10
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SuperColumn') if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() if self.columns is not None: oprot.writeFieldBegin('columns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.columns)) for iter6 in self.columns: iter6.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #11
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('ColumnPath') if self.column_family is not None: oprot.writeFieldBegin('column_family', TType.STRING, 3) oprot.writeString(self.column_family) oprot.writeFieldEnd() if self.super_column is not None: oprot.writeFieldBegin('super_column', TType.STRING, 4) oprot.writeString(self.super_column) oprot.writeFieldEnd() if self.column is not None: oprot.writeFieldBegin('column', TType.STRING, 5) oprot.writeString(self.column) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #12
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('IndexExpression') if self.column_name is not None: oprot.writeFieldBegin('column_name', TType.STRING, 1) oprot.writeString(self.column_name) oprot.writeFieldEnd() if self.op is not None: oprot.writeFieldBegin('op', TType.I32, 2) oprot.writeI32(self.op) oprot.writeFieldEnd() if self.value is not None: oprot.writeFieldBegin('value', TType.STRING, 3) oprot.writeString(self.value) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #13
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SubmitJobResponse') if self.jobId is not None: oprot.writeFieldBegin('jobId', TType.STRING, 1) oprot.writeString(self.jobId) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.clusterId is not None: oprot.writeFieldBegin('clusterId', TType.STRING, 3) oprot.writeString(self.clusterId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #14
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Credential') if self.type is not None: oprot.writeFieldBegin('type', TType.I32, 1) oprot.writeI32(self.type) oprot.writeFieldEnd() if self.secretKeyId is not None: oprot.writeFieldBegin('secretKeyId', TType.STRING, 2) oprot.writeString(self.secretKeyId) oprot.writeFieldEnd() if self.secretKey is not None: oprot.writeFieldBegin('secretKey', TType.STRING, 3) oprot.writeString(self.secretKey) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #15
Source File: AuthService.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('createCredential_args') if self.xiaomiAppId is not None: oprot.writeFieldBegin('xiaomiAppId', TType.STRING, 1) oprot.writeString(self.xiaomiAppId) oprot.writeFieldEnd() if self.appUserAuthProvider is not None: oprot.writeFieldBegin('appUserAuthProvider', TType.I32, 2) oprot.writeI32(self.appUserAuthProvider) oprot.writeFieldEnd() if self.authToken is not None: oprot.writeFieldBegin('authToken', TType.STRING, 3) oprot.writeString(self.authToken) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #16
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('CqlPreparedResult') if self.itemId is not None: oprot.writeFieldBegin('itemId', TType.I32, 1) oprot.writeI32(self.itemId) oprot.writeFieldEnd() if self.count is not None: oprot.writeFieldBegin('count', TType.I32, 2) oprot.writeI32(self.count) oprot.writeFieldEnd() if self.variable_types is not None: oprot.writeFieldBegin('variable_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.variable_types)) for iter167 in self.variable_types: oprot.writeString(iter167) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #17
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('StopServiceRequest') if self.cluster is not None: oprot.writeFieldBegin('cluster', TType.STRING, 1) oprot.writeString(self.cluster) oprot.writeFieldEnd() if self.services is not None: oprot.writeFieldBegin('services', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.services)) for iter87 in self.services: oprot.writeString(iter87) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #18
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('CqlRow') if self.key is not None: oprot.writeFieldBegin('key', TType.STRING, 1) oprot.writeString(self.key) oprot.writeFieldEnd() if self.columns is not None: oprot.writeFieldBegin('columns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.columns)) for iter135 in self.columns: iter135.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #19
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Deletion') if self.timestamp is not None: oprot.writeFieldBegin('timestamp', TType.I64, 1) oprot.writeI64(self.timestamp) oprot.writeFieldEnd() if self.super_column is not None: oprot.writeFieldBegin('super_column', TType.STRING, 2) oprot.writeString(self.super_column) oprot.writeFieldEnd() if self.predicate is not None: oprot.writeFieldBegin('predicate', TType.STRUCT, 3) self.predicate.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #20
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('Version') if self.major is not None: oprot.writeFieldBegin('major', TType.I32, 1) oprot.writeI32(self.major) oprot.writeFieldEnd() if self.minor is not None: oprot.writeFieldBegin('minor', TType.I32, 2) oprot.writeI32(self.minor) oprot.writeFieldEnd() if self.patch is not None: oprot.writeFieldBegin('patch', TType.STRING, 3) oprot.writeString(self.patch) oprot.writeFieldEnd() if self.comments is not None: oprot.writeFieldBegin('comments', TType.STRING, 4) oprot.writeString(self.comments) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #21
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('KeySlice') if self.key is not None: oprot.writeFieldBegin('key', TType.STRING, 1) oprot.writeString(self.key) oprot.writeFieldEnd() if self.columns is not None: oprot.writeFieldBegin('columns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.columns)) for iter41 in self.columns: iter41.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #22
Source File: ttypes.py From cassandra-dtest with Apache License 2.0 | 6 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SlicePredicate') if self.column_names is not None: oprot.writeFieldBegin('column_names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.column_names)) for iter20 in self.column_names: oprot.writeString(iter20) oprot.writeListEnd() oprot.writeFieldEnd() if self.slice_range is not None: oprot.writeFieldBegin('slice_range', TType.STRUCT, 2) self.slice_range.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #23
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('AddInstanceGroupRequest') if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 1) oprot.writeString(self.name) oprot.writeFieldEnd() if self.clusterId is not None: oprot.writeFieldBegin('clusterId', TType.STRING, 2) oprot.writeString(self.clusterId) oprot.writeFieldEnd() if self.role is not None: oprot.writeFieldBegin('role', TType.I32, 3) oprot.writeI32(self.role) oprot.writeFieldEnd() if self.instanceType is not None: oprot.writeFieldBegin('instanceType', TType.STRING, 4) oprot.writeString(self.instanceType) oprot.writeFieldEnd() if self.requestedInstanceCount is not None: oprot.writeFieldBegin('requestedInstanceCount', TType.I32, 5) oprot.writeI32(self.requestedInstanceCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #24
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('CreateClusterResponse') if self.clusterId is not None: oprot.writeFieldBegin('clusterId', TType.STRING, 1) oprot.writeString(self.clusterId) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.addInstanceGroupResponses is not None: oprot.writeFieldBegin('addInstanceGroupResponses', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.addInstanceGroupResponses)) for iter49 in self.addInstanceGroupResponses: iter49.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.submitJobResponses is not None: oprot.writeFieldBegin('submitJobResponses', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.submitJobResponses)) for iter50 in self.submitJobResponses: iter50.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #25
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('TerminateClusterRequest') if self.clusterId is not None: oprot.writeFieldBegin('clusterId', TType.STRING, 1) oprot.writeString(self.clusterId) oprot.writeFieldEnd() if self.force is not None: oprot.writeFieldBegin('force', TType.BOOL, 2) oprot.writeBool(self.force) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #26
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('SetConfigResponse') if self.succeed is not None: oprot.writeFieldBegin('succeed', TType.BOOL, 1) oprot.writeBool(self.succeed) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #27
Source File: EMRMasterService.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('queryClusterState_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #28
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('ModifyInstanceGroupRequest') if self.instanceGroupId is not None: oprot.writeFieldBegin('instanceGroupId', TType.STRING, 1) oprot.writeString(self.instanceGroupId) oprot.writeFieldEnd() if self.requestedInstanceCount is not None: oprot.writeFieldBegin('requestedInstanceCount', TType.I32, 2) oprot.writeI32(self.requestedInstanceCount) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #29
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('InstanceGroupDetail') if self.groupId is not None: oprot.writeFieldBegin('groupId', TType.STRING, 1) oprot.writeString(self.groupId) oprot.writeFieldEnd() if self.name is not None: oprot.writeFieldBegin('name', TType.STRING, 2) oprot.writeString(self.name) oprot.writeFieldEnd() if self.role is not None: oprot.writeFieldBegin('role', TType.I32, 3) oprot.writeI32(self.role) oprot.writeFieldEnd() if self.instanceType is not None: oprot.writeFieldBegin('instanceType', TType.STRING, 4) oprot.writeString(self.instanceType) oprot.writeFieldEnd() if self.requestedInstanceCount is not None: oprot.writeFieldBegin('requestedInstanceCount', TType.I32, 5) oprot.writeI32(self.requestedInstanceCount) oprot.writeFieldEnd() if self.runningInstanceCount is not None: oprot.writeFieldBegin('runningInstanceCount', TType.I32, 6) oprot.writeI32(self.runningInstanceCount) oprot.writeFieldEnd() if self.instanceStatus is not None: oprot.writeFieldBegin('instanceStatus', TType.STRUCT, 7) self.instanceStatus.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()
Example #30
Source File: ttypes.py From galaxy-sdk-python with Apache License 2.0 | 5 votes |
def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('KillJobRequest') if self.jobId is not None: oprot.writeFieldBegin('jobId', TType.STRING, 1) oprot.writeString(self.jobId) oprot.writeFieldEnd() if self.clusterId is not None: oprot.writeFieldBegin('clusterId', TType.STRING, 2) oprot.writeString(self.clusterId) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd()