Package org.platanios.tensorflow.proto
Class EagerServiceOuterClass.Operation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.platanios.tensorflow.proto.EagerServiceOuterClass.Operation
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
,EagerServiceOuterClass.OperationOrBuilder
- Enclosing class:
- EagerServiceOuterClass
public static final class EagerServiceOuterClass.Operation extends com.google.protobuf.GeneratedMessageV3 implements EagerServiceOuterClass.OperationOrBuilder
A proto representation of an eager operation.
Protobuf typeorg.platanios.tensorflow.proto.Operation
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EagerServiceOuterClass.Operation.Builder
A proto representation of an eager operation.static class
EagerServiceOuterClass.Operation.Input
Protobuf typeorg.platanios.tensorflow.proto.Operation.Input
static interface
EagerServiceOuterClass.Operation.InputOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ATTRS_FIELD_NUMBER
static int
CONTROL_OP_IDS_FIELD_NUMBER
static int
DEVICE_FIELD_NUMBER
static int
FUNC_STEP_ID_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
IS_COMPONENT_FUNCTION_FIELD_NUMBER
static int
IS_FUNCTION_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
OP_INPUTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsAttrs(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
boolean
equals(java.lang.Object obj)
java.util.Map<java.lang.String,AttrValue>
getAttrs()
Deprecated.int
getAttrsCount()
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
java.util.Map<java.lang.String,AttrValue>
getAttrsMap()
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
AttrValue
getAttrsOrDefault(java.lang.String key, AttrValue defaultValue)
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
AttrValue
getAttrsOrThrow(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
long
getControlOpIds(int index)
Control Operation IDs that will be respected when ops are re-ordered by async execution.int
getControlOpIdsCount()
Control Operation IDs that will be respected when ops are re-ordered by async execution.java.util.List<java.lang.Long>
getControlOpIdsList()
Control Operation IDs that will be respected when ops are re-ordered by async execution.static EagerServiceOuterClass.Operation
getDefaultInstance()
EagerServiceOuterClass.Operation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
java.lang.String
getDevice()
string device = 6;
com.google.protobuf.ByteString
getDeviceBytes()
string device = 6;
long
getFuncStepId()
Set when is_component_function is true.long
getId()
A unique identifier for the operation.boolean
getIsComponentFunction()
Indicates whether the op is a component of a multi-device function.boolean
getIsFunction()
Indicates whether the op is a function.java.lang.String
getName()
string name = 2;
com.google.protobuf.ByteString
getNameBytes()
string name = 2;
EagerServiceOuterClass.Operation.Input
getOpInputs(int index)
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
int
getOpInputsCount()
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
java.util.List<EagerServiceOuterClass.Operation.Input>
getOpInputsList()
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
EagerServiceOuterClass.Operation.InputOrBuilder
getOpInputsOrBuilder(int index)
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
java.util.List<? extends EagerServiceOuterClass.Operation.InputOrBuilder>
getOpInputsOrBuilderList()
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
com.google.protobuf.Parser<EagerServiceOuterClass.Operation>
getParserForType()
int
getSerializedSize()
com.google.protobuf.UnknownFieldSet
getUnknownFields()
int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static EagerServiceOuterClass.Operation.Builder
newBuilder()
static EagerServiceOuterClass.Operation.Builder
newBuilder(EagerServiceOuterClass.Operation prototype)
EagerServiceOuterClass.Operation.Builder
newBuilderForType()
protected EagerServiceOuterClass.Operation.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static EagerServiceOuterClass.Operation
parseDelimitedFrom(java.io.InputStream input)
static EagerServiceOuterClass.Operation
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static EagerServiceOuterClass.Operation
parseFrom(byte[] data)
static EagerServiceOuterClass.Operation
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static EagerServiceOuterClass.Operation
parseFrom(com.google.protobuf.ByteString data)
static EagerServiceOuterClass.Operation
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static EagerServiceOuterClass.Operation
parseFrom(com.google.protobuf.CodedInputStream input)
static EagerServiceOuterClass.Operation
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static EagerServiceOuterClass.Operation
parseFrom(java.io.InputStream input)
static EagerServiceOuterClass.Operation
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static EagerServiceOuterClass.Operation
parseFrom(java.nio.ByteBuffer data)
static EagerServiceOuterClass.Operation
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<EagerServiceOuterClass.Operation>
parser()
EagerServiceOuterClass.Operation.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OP_INPUTS_FIELD_NUMBER
public static final int OP_INPUTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTROL_OP_IDS_FIELD_NUMBER
public static final int CONTROL_OP_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRS_FIELD_NUMBER
public static final int ATTRS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEVICE_FIELD_NUMBER
public static final int DEVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_COMPONENT_FUNCTION_FIELD_NUMBER
public static final int IS_COMPONENT_FUNCTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FUNC_STEP_ID_FIELD_NUMBER
public static final int FUNC_STEP_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_FUNCTION_FIELD_NUMBER
public static final int IS_FUNCTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getId
public long getId()
A unique identifier for the operation. Set by the client so that the client can uniquely identify the outputs of the scheduled operation. In the initial implementation, sending duplicate IDs has undefined behaviour, but additional constraints may be placed upon this in the future.
int64 id = 1;
- Specified by:
getId
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The id.
-
getName
public java.lang.String getName()
string name = 2;
- Specified by:
getName
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 2;
- Specified by:
getNameBytes
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The bytes for name.
-
getOpInputsList
public java.util.List<EagerServiceOuterClass.Operation.Input> getOpInputsList()
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
- Specified by:
getOpInputsList
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getOpInputsOrBuilderList
public java.util.List<? extends EagerServiceOuterClass.Operation.InputOrBuilder> getOpInputsOrBuilderList()
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
- Specified by:
getOpInputsOrBuilderList
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getOpInputsCount
public int getOpInputsCount()
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
- Specified by:
getOpInputsCount
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getOpInputs
public EagerServiceOuterClass.Operation.Input getOpInputs(int index)
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
- Specified by:
getOpInputs
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getOpInputsOrBuilder
public EagerServiceOuterClass.Operation.InputOrBuilder getOpInputsOrBuilder(int index)
repeated .org.platanios.tensorflow.proto.Operation.Input op_inputs = 10;
- Specified by:
getOpInputsOrBuilder
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getControlOpIdsList
public java.util.List<java.lang.Long> getControlOpIdsList()
Control Operation IDs that will be respected when ops are re-ordered by async execution. If async execution (+ op re-ordering) is not enabled, this should have no effect.
repeated int64 control_op_ids = 4;
- Specified by:
getControlOpIdsList
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- A list containing the controlOpIds.
-
getControlOpIdsCount
public int getControlOpIdsCount()
Control Operation IDs that will be respected when ops are re-ordered by async execution. If async execution (+ op re-ordering) is not enabled, this should have no effect.
repeated int64 control_op_ids = 4;
- Specified by:
getControlOpIdsCount
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The count of controlOpIds.
-
getControlOpIds
public long getControlOpIds(int index)
Control Operation IDs that will be respected when ops are re-ordered by async execution. If async execution (+ op re-ordering) is not enabled, this should have no effect.
repeated int64 control_op_ids = 4;
- Specified by:
getControlOpIds
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The controlOpIds at the given index.
-
getAttrsCount
public int getAttrsCount()
Description copied from interface:EagerServiceOuterClass.OperationOrBuilder
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
- Specified by:
getAttrsCount
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
containsAttrs
public boolean containsAttrs(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
- Specified by:
containsAttrs
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getAttrs
@Deprecated public java.util.Map<java.lang.String,AttrValue> getAttrs()
Deprecated.UsegetAttrsMap()
instead.- Specified by:
getAttrs
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getAttrsMap
public java.util.Map<java.lang.String,AttrValue> getAttrsMap()
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
- Specified by:
getAttrsMap
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getAttrsOrDefault
public AttrValue getAttrsOrDefault(java.lang.String key, AttrValue defaultValue)
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
- Specified by:
getAttrsOrDefault
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getAttrsOrThrow
public AttrValue getAttrsOrThrow(java.lang.String key)
map<string, .org.platanios.tensorflow.proto.AttrValue> attrs = 5;
- Specified by:
getAttrsOrThrow
in interfaceEagerServiceOuterClass.OperationOrBuilder
-
getDevice
public java.lang.String getDevice()
string device = 6;
- Specified by:
getDevice
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The device.
-
getDeviceBytes
public com.google.protobuf.ByteString getDeviceBytes()
string device = 6;
- Specified by:
getDeviceBytes
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The bytes for device.
-
getIsComponentFunction
public boolean getIsComponentFunction()
Indicates whether the op is a component of a multi-device function.
bool is_component_function = 7;
- Specified by:
getIsComponentFunction
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The isComponentFunction.
-
getFuncStepId
public long getFuncStepId()
Set when is_component_function is true. It's initially generated when we create an FunctionLibraryRuntime::Options (negative value) and used to create Rendezvous for function execution. All components of a multi-device function should use the same step id to make sure that they can communicate through Send/Recv ops.
int64 func_step_id = 8;
- Specified by:
getFuncStepId
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The funcStepId.
-
getIsFunction
public boolean getIsFunction()
Indicates whether the op is a function.
bool is_function = 9;
- Specified by:
getIsFunction
in interfaceEagerServiceOuterClass.OperationOrBuilder
- Returns:
- The isFunction.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static EagerServiceOuterClass.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static EagerServiceOuterClass.Operation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static EagerServiceOuterClass.Operation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public EagerServiceOuterClass.Operation.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static EagerServiceOuterClass.Operation.Builder newBuilder()
-
newBuilder
public static EagerServiceOuterClass.Operation.Builder newBuilder(EagerServiceOuterClass.Operation prototype)
-
toBuilder
public EagerServiceOuterClass.Operation.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EagerServiceOuterClass.Operation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static EagerServiceOuterClass.Operation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<EagerServiceOuterClass.Operation> parser()
-
getParserForType
public com.google.protobuf.Parser<EagerServiceOuterClass.Operation> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public EagerServiceOuterClass.Operation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-