Class ComponentProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ComponentProtoOrBuilder,Cloneable
- Enclosing class:
- ComponentProto
public static final class ComponentProto.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
implements ComponentProtoOrBuilder
A configurable component.Protobuf type
olcut.ComponentProto-
Method Summary
Modifier and TypeMethodDescriptionaddAllListProperty(Iterable<? extends PropertyListProto> values) repeated .olcut.PropertyListProto list_property = 4;addAllMapProperty(Iterable<? extends PropertyMapProto> values) repeated .olcut.PropertyMapProto map_property = 5;addListProperty(int index, PropertyListProto value) repeated .olcut.PropertyListProto list_property = 4;addListProperty(int index, PropertyListProto.Builder builderForValue) repeated .olcut.PropertyListProto list_property = 4;addListProperty(PropertyListProto value) repeated .olcut.PropertyListProto list_property = 4;addListProperty(PropertyListProto.Builder builderForValue) repeated .olcut.PropertyListProto list_property = 4;repeated .olcut.PropertyListProto list_property = 4;addListPropertyBuilder(int index) repeated .olcut.PropertyListProto list_property = 4;addMapProperty(int index, PropertyMapProto value) repeated .olcut.PropertyMapProto map_property = 5;addMapProperty(int index, PropertyMapProto.Builder builderForValue) repeated .olcut.PropertyMapProto map_property = 5;addMapProperty(PropertyMapProto value) repeated .olcut.PropertyMapProto map_property = 5;addMapProperty(PropertyMapProto.Builder builderForValue) repeated .olcut.PropertyMapProto map_property = 5;repeated .olcut.PropertyMapProto map_property = 5;addMapPropertyBuilder(int index) repeated .olcut.PropertyMapProto map_property = 5;addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()optional string entries = 11;optional bool exportable = 7;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) optional bool importable = 8;optional int64 leaseTime = 9;repeated .olcut.PropertyListProto list_property = 4;repeated .olcut.PropertyMapProto map_property = 5;string name = 1;clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional string override = 6;optional string serialized = 10;optional string type = 2;clone()booleancontainsProperties(String key) map<string, string> properties = 3;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional string entries = 11;com.google.protobuf.ByteStringoptional string entries = 11;booleanoptional bool exportable = 7;booleanoptional bool importable = 8;longoptional int64 leaseTime = 9;getListProperty(int index) repeated .olcut.PropertyListProto list_property = 4;getListPropertyBuilder(int index) repeated .olcut.PropertyListProto list_property = 4;repeated .olcut.PropertyListProto list_property = 4;intrepeated .olcut.PropertyListProto list_property = 4;repeated .olcut.PropertyListProto list_property = 4;getListPropertyOrBuilder(int index) repeated .olcut.PropertyListProto list_property = 4;List<? extends PropertyListProtoOrBuilder>repeated .olcut.PropertyListProto list_property = 4;getMapProperty(int index) repeated .olcut.PropertyMapProto map_property = 5;getMapPropertyBuilder(int index) repeated .olcut.PropertyMapProto map_property = 5;repeated .olcut.PropertyMapProto map_property = 5;intrepeated .olcut.PropertyMapProto map_property = 5;repeated .olcut.PropertyMapProto map_property = 5;getMapPropertyOrBuilder(int index) repeated .olcut.PropertyMapProto map_property = 5;List<? extends PropertyMapProtoOrBuilder>repeated .olcut.PropertyMapProto map_property = 5;Deprecated.getName()string name = 1;com.google.protobuf.ByteStringstring name = 1;optional string override = 6;com.google.protobuf.ByteStringoptional string override = 6;Deprecated.intmap<string, string> properties = 3;map<string, string> properties = 3;getPropertiesOrDefault(String key, String defaultValue) map<string, string> properties = 3;map<string, string> properties = 3;optional string serialized = 10;com.google.protobuf.ByteStringoptional string serialized = 10;getType()optional string type = 2;com.google.protobuf.ByteStringoptional string type = 2;booleanoptional string entries = 11;booleanoptional bool exportable = 7;booleanoptional bool importable = 8;booleanoptional int64 leaseTime = 9;booleanoptional string override = 6;booleanoptional string serialized = 10;booleanhasType()optional string type = 2;final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ComponentProto other) final ComponentProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllProperties(Map<String, String> values) map<string, string> properties = 3;putProperties(String key, String value) map<string, string> properties = 3;removeListProperty(int index) repeated .olcut.PropertyListProto list_property = 4;removeMapProperty(int index) repeated .olcut.PropertyMapProto map_property = 5;removeProperties(String key) map<string, string> properties = 3;setEntries(String value) optional string entries = 11;setEntriesBytes(com.google.protobuf.ByteString value) optional string entries = 11;setExportable(boolean value) optional bool exportable = 7;setImportable(boolean value) optional bool importable = 8;setLeaseTime(long value) optional int64 leaseTime = 9;setListProperty(int index, PropertyListProto value) repeated .olcut.PropertyListProto list_property = 4;setListProperty(int index, PropertyListProto.Builder builderForValue) repeated .olcut.PropertyListProto list_property = 4;setMapProperty(int index, PropertyMapProto value) repeated .olcut.PropertyMapProto map_property = 5;setMapProperty(int index, PropertyMapProto.Builder builderForValue) repeated .olcut.PropertyMapProto map_property = 5;string name = 1;setNameBytes(com.google.protobuf.ByteString value) string name = 1;setOverride(String value) optional string override = 6;setOverrideBytes(com.google.protobuf.ByteString value) optional string override = 6;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSerialized(String value) optional string serialized = 10;setSerializedBytes(com.google.protobuf.ByteString value) optional string serialized = 10;optional string type = 2;setTypeBytes(com.google.protobuf.ByteString value) optional string type = 2;final ComponentProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForFieldMethods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFromMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
setField
public ComponentProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
setRepeatedField
public ComponentProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
addRepeatedField
public ComponentProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComponentProto.Builder>
-
mergeFrom
-
isInitialized
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
mergeFrom
public ComponentProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComponentProto.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceComponentProtoOrBuilder- Returns:
- The name.
-
getNameBytes
string name = 1;- Specified by:
getNameBytesin interfaceComponentProtoOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasType
optional string type = 2;- Specified by:
hasTypein interfaceComponentProtoOrBuilder- Returns:
- Whether the type field is set.
-
getType
optional string type = 2;- Specified by:
getTypein interfaceComponentProtoOrBuilder- Returns:
- The type.
-
getTypeBytes
optional string type = 2;- Specified by:
getTypeBytesin interfaceComponentProtoOrBuilder- Returns:
- The bytes for type.
-
setType
optional string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
optional string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
optional string type = 2;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getPropertiesCount
Description copied from interface:ComponentProtoOrBuildermap<string, string> properties = 3;- Specified by:
getPropertiesCountin interfaceComponentProtoOrBuilder
-
containsProperties
map<string, string> properties = 3;- Specified by:
containsPropertiesin interfaceComponentProtoOrBuilder
-
getProperties
Deprecated.UsegetPropertiesMap()instead.- Specified by:
getPropertiesin interfaceComponentProtoOrBuilder
-
getPropertiesMap
map<string, string> properties = 3;- Specified by:
getPropertiesMapin interfaceComponentProtoOrBuilder
-
getPropertiesOrDefault
map<string, string> properties = 3;- Specified by:
getPropertiesOrDefaultin interfaceComponentProtoOrBuilder
-
getPropertiesOrThrow
map<string, string> properties = 3;- Specified by:
getPropertiesOrThrowin interfaceComponentProtoOrBuilder
-
clearProperties
-
removeProperties
map<string, string> properties = 3; -
getMutableProperties
Deprecated.Use alternate mutation accessors instead. -
putProperties
map<string, string> properties = 3; -
putAllProperties
map<string, string> properties = 3; -
getListPropertyList
repeated .olcut.PropertyListProto list_property = 4;- Specified by:
getListPropertyListin interfaceComponentProtoOrBuilder
-
getListPropertyCount
repeated .olcut.PropertyListProto list_property = 4;- Specified by:
getListPropertyCountin interfaceComponentProtoOrBuilder
-
getListProperty
repeated .olcut.PropertyListProto list_property = 4;- Specified by:
getListPropertyin interfaceComponentProtoOrBuilder
-
setListProperty
repeated .olcut.PropertyListProto list_property = 4; -
setListProperty
repeated .olcut.PropertyListProto list_property = 4; -
addListProperty
repeated .olcut.PropertyListProto list_property = 4; -
addListProperty
repeated .olcut.PropertyListProto list_property = 4; -
addListProperty
repeated .olcut.PropertyListProto list_property = 4; -
addListProperty
repeated .olcut.PropertyListProto list_property = 4; -
addAllListProperty
repeated .olcut.PropertyListProto list_property = 4; -
clearListProperty
repeated .olcut.PropertyListProto list_property = 4; -
removeListProperty
repeated .olcut.PropertyListProto list_property = 4; -
getListPropertyBuilder
repeated .olcut.PropertyListProto list_property = 4; -
getListPropertyOrBuilder
repeated .olcut.PropertyListProto list_property = 4;- Specified by:
getListPropertyOrBuilderin interfaceComponentProtoOrBuilder
-
getListPropertyOrBuilderList
repeated .olcut.PropertyListProto list_property = 4;- Specified by:
getListPropertyOrBuilderListin interfaceComponentProtoOrBuilder
-
addListPropertyBuilder
repeated .olcut.PropertyListProto list_property = 4; -
addListPropertyBuilder
repeated .olcut.PropertyListProto list_property = 4; -
getListPropertyBuilderList
repeated .olcut.PropertyListProto list_property = 4; -
getMapPropertyList
repeated .olcut.PropertyMapProto map_property = 5;- Specified by:
getMapPropertyListin interfaceComponentProtoOrBuilder
-
getMapPropertyCount
repeated .olcut.PropertyMapProto map_property = 5;- Specified by:
getMapPropertyCountin interfaceComponentProtoOrBuilder
-
getMapProperty
repeated .olcut.PropertyMapProto map_property = 5;- Specified by:
getMapPropertyin interfaceComponentProtoOrBuilder
-
setMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
setMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
addMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
addMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
addMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
addMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
addAllMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
clearMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
removeMapProperty
repeated .olcut.PropertyMapProto map_property = 5; -
getMapPropertyBuilder
repeated .olcut.PropertyMapProto map_property = 5; -
getMapPropertyOrBuilder
repeated .olcut.PropertyMapProto map_property = 5;- Specified by:
getMapPropertyOrBuilderin interfaceComponentProtoOrBuilder
-
getMapPropertyOrBuilderList
repeated .olcut.PropertyMapProto map_property = 5;- Specified by:
getMapPropertyOrBuilderListin interfaceComponentProtoOrBuilder
-
addMapPropertyBuilder
repeated .olcut.PropertyMapProto map_property = 5; -
addMapPropertyBuilder
repeated .olcut.PropertyMapProto map_property = 5; -
getMapPropertyBuilderList
repeated .olcut.PropertyMapProto map_property = 5; -
hasOverride
optional string override = 6;- Specified by:
hasOverridein interfaceComponentProtoOrBuilder- Returns:
- Whether the override field is set.
-
getOverride
optional string override = 6;- Specified by:
getOverridein interfaceComponentProtoOrBuilder- Returns:
- The override.
-
getOverrideBytes
optional string override = 6;- Specified by:
getOverrideBytesin interfaceComponentProtoOrBuilder- Returns:
- The bytes for override.
-
setOverride
optional string override = 6;- Parameters:
value- The override to set.- Returns:
- This builder for chaining.
-
clearOverride
optional string override = 6;- Returns:
- This builder for chaining.
-
setOverrideBytes
optional string override = 6;- Parameters:
value- The bytes for override to set.- Returns:
- This builder for chaining.
-
hasExportable
optional bool exportable = 7;- Specified by:
hasExportablein interfaceComponentProtoOrBuilder- Returns:
- Whether the exportable field is set.
-
getExportable
optional bool exportable = 7;- Specified by:
getExportablein interfaceComponentProtoOrBuilder- Returns:
- The exportable.
-
setExportable
optional bool exportable = 7;- Parameters:
value- The exportable to set.- Returns:
- This builder for chaining.
-
clearExportable
optional bool exportable = 7;- Returns:
- This builder for chaining.
-
hasImportable
optional bool importable = 8;- Specified by:
hasImportablein interfaceComponentProtoOrBuilder- Returns:
- Whether the importable field is set.
-
getImportable
optional bool importable = 8;- Specified by:
getImportablein interfaceComponentProtoOrBuilder- Returns:
- The importable.
-
setImportable
optional bool importable = 8;- Parameters:
value- The importable to set.- Returns:
- This builder for chaining.
-
clearImportable
optional bool importable = 8;- Returns:
- This builder for chaining.
-
hasLeaseTime
optional int64 leaseTime = 9;- Specified by:
hasLeaseTimein interfaceComponentProtoOrBuilder- Returns:
- Whether the leaseTime field is set.
-
getLeaseTime
optional int64 leaseTime = 9;- Specified by:
getLeaseTimein interfaceComponentProtoOrBuilder- Returns:
- The leaseTime.
-
setLeaseTime
optional int64 leaseTime = 9;- Parameters:
value- The leaseTime to set.- Returns:
- This builder for chaining.
-
clearLeaseTime
optional int64 leaseTime = 9;- Returns:
- This builder for chaining.
-
hasSerialized
optional string serialized = 10;- Specified by:
hasSerializedin interfaceComponentProtoOrBuilder- Returns:
- Whether the serialized field is set.
-
getSerialized
optional string serialized = 10;- Specified by:
getSerializedin interfaceComponentProtoOrBuilder- Returns:
- The serialized.
-
getSerializedBytes
optional string serialized = 10;- Specified by:
getSerializedBytesin interfaceComponentProtoOrBuilder- Returns:
- The bytes for serialized.
-
setSerialized
optional string serialized = 10;- Parameters:
value- The serialized to set.- Returns:
- This builder for chaining.
-
clearSerialized
optional string serialized = 10;- Returns:
- This builder for chaining.
-
setSerializedBytes
optional string serialized = 10;- Parameters:
value- The bytes for serialized to set.- Returns:
- This builder for chaining.
-
hasEntries
optional string entries = 11;- Specified by:
hasEntriesin interfaceComponentProtoOrBuilder- Returns:
- Whether the entries field is set.
-
getEntries
optional string entries = 11;- Specified by:
getEntriesin interfaceComponentProtoOrBuilder- Returns:
- The entries.
-
getEntriesBytes
optional string entries = 11;- Specified by:
getEntriesBytesin interfaceComponentProtoOrBuilder- Returns:
- The bytes for entries.
-
setEntries
optional string entries = 11;- Parameters:
value- The entries to set.- Returns:
- This builder for chaining.
-
clearEntries
optional string entries = 11;- Returns:
- This builder for chaining.
-
setEntriesBytes
optional string entries = 11;- Parameters:
value- The bytes for entries to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ComponentProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-
mergeUnknownFields
public final ComponentProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ComponentProto.Builder>
-