Package com.github.xds.core.v3
Class CollectionEntry.InlineEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.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
,java.lang.Cloneable
- Enclosing class:
- CollectionEntry.InlineEntry
public static final class CollectionEntry.InlineEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<CollectionEntry.InlineEntry.Builder> implements CollectionEntry.InlineEntryOrBuilder
Inlined resource entry.
Protobuf typexds.core.v3.CollectionEntry.InlineEntry
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private java.lang.Object
name_
private com.google.protobuf.Any
resource_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>
resourceBuilder_
private java.lang.Object
version_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionEntry.InlineEntry
build()
CollectionEntry.InlineEntry
buildPartial()
private void
buildPartial0(CollectionEntry.InlineEntry result)
CollectionEntry.InlineEntry.Builder
clear()
CollectionEntry.InlineEntry.Builder
clearName()
Optional name to describe the inlined resource.CollectionEntry.InlineEntry.Builder
clearResource()
The resource payload, including type URL.CollectionEntry.InlineEntry.Builder
clearVersion()
The resource's logical version.CollectionEntry.InlineEntry
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getName()
Optional name to describe the inlined resource.com.google.protobuf.ByteString
getNameBytes()
Optional name to describe the inlined resource.com.google.protobuf.Any
getResource()
The resource payload, including type URL.com.google.protobuf.Any.Builder
getResourceBuilder()
The resource payload, including type URL.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>
getResourceFieldBuilder()
The resource payload, including type URL.com.google.protobuf.AnyOrBuilder
getResourceOrBuilder()
The resource payload, including type URL.java.lang.String
getVersion()
The resource's logical version.com.google.protobuf.ByteString
getVersionBytes()
The resource's logical version.boolean
hasResource()
The resource payload, including type URL.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
CollectionEntry.InlineEntry.Builder
mergeFrom(CollectionEntry.InlineEntry other)
CollectionEntry.InlineEntry.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CollectionEntry.InlineEntry.Builder
mergeFrom(com.google.protobuf.Message other)
CollectionEntry.InlineEntry.Builder
mergeResource(com.google.protobuf.Any value)
The resource payload, including type URL.CollectionEntry.InlineEntry.Builder
setName(java.lang.String value)
Optional name to describe the inlined resource.CollectionEntry.InlineEntry.Builder
setNameBytes(com.google.protobuf.ByteString value)
Optional name to describe the inlined resource.CollectionEntry.InlineEntry.Builder
setResource(com.google.protobuf.Any value)
The resource payload, including type URL.CollectionEntry.InlineEntry.Builder
setResource(com.google.protobuf.Any.Builder builderForValue)
The resource payload, including type URL.CollectionEntry.InlineEntry.Builder
setVersion(java.lang.String value)
The resource's logical version.CollectionEntry.InlineEntry.Builder
setVersionBytes(com.google.protobuf.ByteString value)
The resource's logical version.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
name_
private java.lang.Object name_
-
version_
private java.lang.Object version_
-
resource_
private com.google.protobuf.Any resource_
-
resourceBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> resourceBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public CollectionEntry.InlineEntry.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
getDefaultInstanceForType
public CollectionEntry.InlineEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CollectionEntry.InlineEntry build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CollectionEntry.InlineEntry buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(CollectionEntry.InlineEntry result)
-
mergeFrom
public CollectionEntry.InlineEntry.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
mergeFrom
public CollectionEntry.InlineEntry.Builder mergeFrom(CollectionEntry.InlineEntry other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
mergeFrom
public CollectionEntry.InlineEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CollectionEntry.InlineEntry.Builder>
- Throws:
java.io.IOException
-
getName
public java.lang.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:
getName
in 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:
getNameBytes
in interfaceCollectionEntry.InlineEntryOrBuilder
- Returns:
- The bytes for name.
-
setName
public CollectionEntry.InlineEntry.Builder setName(java.lang.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 java.lang.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:
getVersion
in 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:
getVersionBytes
in interfaceCollectionEntry.InlineEntryOrBuilder
- Returns:
- The bytes for version.
-
setVersion
public CollectionEntry.InlineEntry.Builder setVersion(java.lang.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:
hasResource
in 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:
getResource
in 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:
getResourceOrBuilder
in interfaceCollectionEntry.InlineEntryOrBuilder
-
getResourceFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> getResourceFieldBuilder()
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
-