Package com.github.xds.core.v3
Class CollectionEntry.InlineEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CollectionEntry.InlineEntry.Builder>
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
,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 type
xds.core.v3.CollectionEntry.InlineEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
Optional name to describe the inlined resource.The resource payload, including type URL.The resource's logical version.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
Optional name to describe the inlined resource.com.google.protobuf.ByteString
Optional name to describe the inlined resource.com.google.protobuf.Any
The resource payload, including type URL.com.google.protobuf.Any.Builder
The resource payload, including type URL.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> The resource payload, including type URL.com.google.protobuf.AnyOrBuilder
The resource payload, including type URL.The resource's logical version.com.google.protobuf.ByteString
The resource's logical version.boolean
The resource payload, including type URL.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeResource
(com.google.protobuf.Any value) The resource payload, including type URL.Optional name to describe the inlined resource.setNameBytes
(com.google.protobuf.ByteString value) Optional name to describe the inlined resource.setResource
(com.google.protobuf.Any value) The resource payload, including type URL.setResource
(com.google.protobuf.Any.Builder builderForValue) The resource payload, including type URL.setVersion
(String value) The resource's logical version.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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
name_
-
version_
-
resource_
private com.google.protobuf.Any resource_ -
resourceBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder, resourceBuilder_com.google.protobuf.AnyOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CollectionEntry.InlineEntry.Builder>
-
mergeFrom
-
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 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:
IOException
-
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
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
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
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
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
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
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
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
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
The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-
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, getResourceFieldBuilder()com.google.protobuf.AnyOrBuilder> The resource payload, including type URL.
.google.protobuf.Any resource = 3;
-