Package com.github.xds.core.v3
Class CollectionEntry.InlineEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
- com.github.xds.core.v3.CollectionEntry.InlineEntry.Builder
-
- All Implemented Interfaces:
CollectionEntry.InlineEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CollectionEntry.InlineEntry
public static final class CollectionEntry.InlineEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder> implements CollectionEntry.InlineEntryOrBuilder
Inlined resource entry.
Protobuf typexds.core.v3.CollectionEntry.InlineEntry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionEntry.InlineEntry.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CollectionEntry.InlineEntrybuild()CollectionEntry.InlineEntrybuildPartial()CollectionEntry.InlineEntry.Builderclear()CollectionEntry.InlineEntry.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CollectionEntry.InlineEntry.BuilderclearName()Optional name to describe the inlined resource.CollectionEntry.InlineEntry.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CollectionEntry.InlineEntry.BuilderclearResource()The resource payload, including type URL.CollectionEntry.InlineEntry.BuilderclearVersion()The resource's logical version.CollectionEntry.InlineEntry.Builderclone()CollectionEntry.InlineEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Optional name to describe the inlined resource.com.google.protobuf.ByteStringgetNameBytes()Optional name to describe the inlined resource.com.google.protobuf.AnygetResource()The resource payload, including type URL.com.google.protobuf.Any.BuildergetResourceBuilder()The resource payload, including type URL.com.google.protobuf.AnyOrBuildergetResourceOrBuilder()The resource payload, including type URL.StringgetVersion()The resource's logical version.com.google.protobuf.ByteStringgetVersionBytes()The resource's logical version.booleanhasResource()The resource payload, including type URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CollectionEntry.InlineEntry.BuildermergeFrom(CollectionEntry.InlineEntry other)CollectionEntry.InlineEntry.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CollectionEntry.InlineEntry.BuildermergeFrom(com.google.protobuf.Message other)CollectionEntry.InlineEntry.BuildermergeResource(com.google.protobuf.Any value)The resource payload, including type URL.CollectionEntry.InlineEntry.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CollectionEntry.InlineEntry.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CollectionEntry.InlineEntry.BuildersetName(String value)Optional name to describe the inlined resource.CollectionEntry.InlineEntry.BuildersetNameBytes(com.google.protobuf.ByteString value)Optional name to describe the inlined resource.CollectionEntry.InlineEntry.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CollectionEntry.InlineEntry.BuildersetResource(com.google.protobuf.Any value)The resource payload, including type URL.CollectionEntry.InlineEntry.BuildersetResource(com.google.protobuf.Any.Builder builderForValue)The resource payload, including type URL.CollectionEntry.InlineEntry.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CollectionEntry.InlineEntry.BuildersetVersion(String value)The resource's logical version.CollectionEntry.InlineEntry.BuildersetVersionBytes(com.google.protobuf.ByteString value)The resource's logical version.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
clear
public CollectionEntry.InlineEntry.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
getDefaultInstanceForType
public CollectionEntry.InlineEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CollectionEntry.InlineEntry build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CollectionEntry.InlineEntry buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CollectionEntry.InlineEntry.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<CollectionEntry.InlineEntry.Builder>
-
setField
public CollectionEntry.InlineEntry.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<CollectionEntry.InlineEntry.Builder>
-
clearField
public CollectionEntry.InlineEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
clearOneof
public CollectionEntry.InlineEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
setRepeatedField
public CollectionEntry.InlineEntry.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<CollectionEntry.InlineEntry.Builder>
-
addRepeatedField
public CollectionEntry.InlineEntry.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<CollectionEntry.InlineEntry.Builder>
-
mergeFrom
public CollectionEntry.InlineEntry.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
mergeFrom
public CollectionEntry.InlineEntry.Builder mergeFrom(CollectionEntry.InlineEntry other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
mergeFrom
public CollectionEntry.InlineEntry.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<CollectionEntry.InlineEntry.Builder>- Throws:
IOException
-
getName
public String getName()
Optional name to describe the inlined resource. Resource names must match ``[a-zA-Z0-9_-\./]+`` (TODO(htuch): turn this into a PGV constraint once finalized, probably should be a RFC3986 pchar). This name allows reference via the #entry directive in ResourceLocator.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceCollectionEntry.InlineEntryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Optional name to describe the inlined resource. Resource names must match ``[a-zA-Z0-9_-\./]+`` (TODO(htuch): turn this into a PGV constraint once finalized, probably should be a RFC3986 pchar). This name allows reference via the #entry directive in ResourceLocator.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceCollectionEntry.InlineEntryOrBuilder- Returns:
- The bytes for name.
-
setName
public CollectionEntry.InlineEntry.Builder setName(String value)
Optional name to describe the inlined resource. Resource names must match ``[a-zA-Z0-9_-\./]+`` (TODO(htuch): turn this into a PGV constraint once finalized, probably should be a RFC3986 pchar). This name allows reference via the #entry directive in ResourceLocator.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CollectionEntry.InlineEntry.Builder clearName()
Optional name to describe the inlined resource. Resource names must match ``[a-zA-Z0-9_-\./]+`` (TODO(htuch): turn this into a PGV constraint once finalized, probably should be a RFC3986 pchar). This name allows reference via the #entry directive in ResourceLocator.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public CollectionEntry.InlineEntry.Builder setNameBytes(com.google.protobuf.ByteString value)
Optional name to describe the inlined resource. Resource names must match ``[a-zA-Z0-9_-\./]+`` (TODO(htuch): turn this into a PGV constraint once finalized, probably should be a RFC3986 pchar). This name allows reference via the #entry directive in ResourceLocator.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getVersion
public String getVersion()
The resource's logical version. It is illegal to have the same named xDS resource name at a given version with different resource payloads.
string version = 2;- Specified by:
getVersionin interfaceCollectionEntry.InlineEntryOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
The resource's logical version. It is illegal to have the same named xDS resource name at a given version with different resource payloads.
string version = 2;- Specified by:
getVersionBytesin interfaceCollectionEntry.InlineEntryOrBuilder- Returns:
- The bytes for version.
-
setVersion
public CollectionEntry.InlineEntry.Builder setVersion(String value)
The resource's logical version. It is illegal to have the same named xDS resource name at a given version with different resource payloads.
string version = 2;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public CollectionEntry.InlineEntry.Builder clearVersion()
The resource's logical version. It is illegal to have the same named xDS resource name at a given version with different resource payloads.
string version = 2;- Returns:
- This builder for chaining.
-
setVersionBytes
public CollectionEntry.InlineEntry.Builder setVersionBytes(com.google.protobuf.ByteString value)
The resource's logical version. It is illegal to have the same named xDS resource name at a given version with different resource payloads.
string version = 2;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasResource
public boolean hasResource()
The resource payload, including type URL.
.google.protobuf.Any resource = 3;- Specified by:
hasResourcein interfaceCollectionEntry.InlineEntryOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
public com.google.protobuf.Any getResource()
The resource payload, including type URL.
.google.protobuf.Any resource = 3;- Specified by:
getResourcein interfaceCollectionEntry.InlineEntryOrBuilder- Returns:
- The resource.
-
setResource
public CollectionEntry.InlineEntry.Builder setResource(com.google.protobuf.Any value)
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
setResource
public CollectionEntry.InlineEntry.Builder setResource(com.google.protobuf.Any.Builder builderForValue)
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
mergeResource
public CollectionEntry.InlineEntry.Builder mergeResource(com.google.protobuf.Any value)
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
clearResource
public CollectionEntry.InlineEntry.Builder clearResource()
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
getResourceBuilder
public com.google.protobuf.Any.Builder getResourceBuilder()
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
getResourceOrBuilder
public com.google.protobuf.AnyOrBuilder getResourceOrBuilder()
The resource payload, including type URL.
.google.protobuf.Any resource = 3;- Specified by:
getResourceOrBuilderin interfaceCollectionEntry.InlineEntryOrBuilder
-
setUnknownFields
public final CollectionEntry.InlineEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
mergeUnknownFields
public final CollectionEntry.InlineEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CollectionEntry.InlineEntry.Builder>
-
-