Package com.github.xds.core.v3
Class TypedExtensionConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.Builder>
-
- com.github.xds.core.v3.TypedExtensionConfig.Builder
-
- All Implemented Interfaces:
TypedExtensionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- TypedExtensionConfig
public static final class TypedExtensionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.Builder> implements TypedExtensionConfigOrBuilder
Message type for extension configuration.
Protobuf typexds.core.v3.TypedExtensionConfig
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.Objectname_private com.google.protobuf.AnytypedConfig_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>typedConfigBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedExtensionConfigbuild()TypedExtensionConfigbuildPartial()private voidbuildPartial0(TypedExtensionConfig result)TypedExtensionConfig.Builderclear()TypedExtensionConfig.BuilderclearName()The name of an extension.TypedExtensionConfig.BuilderclearTypedConfig()The typed config for the extension.TypedExtensionConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetName()The name of an extension.com.google.protobuf.ByteStringgetNameBytes()The name of an extension.com.google.protobuf.AnygetTypedConfig()The typed config for the extension.com.google.protobuf.Any.BuildergetTypedConfigBuilder()The typed config for the extension.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>getTypedConfigFieldBuilder()The typed config for the extension.com.google.protobuf.AnyOrBuildergetTypedConfigOrBuilder()The typed config for the extension.booleanhasTypedConfig()The typed config for the extension.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()TypedExtensionConfig.BuildermergeFrom(TypedExtensionConfig other)TypedExtensionConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TypedExtensionConfig.BuildermergeFrom(com.google.protobuf.Message other)TypedExtensionConfig.BuildermergeTypedConfig(com.google.protobuf.Any value)The typed config for the extension.TypedExtensionConfig.BuildersetName(java.lang.String value)The name of an extension.TypedExtensionConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of an extension.TypedExtensionConfig.BuildersetTypedConfig(com.google.protobuf.Any value)The typed config for the extension.TypedExtensionConfig.BuildersetTypedConfig(com.google.protobuf.Any.Builder builderForValue)The typed config for the extension.-
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_
-
typedConfig_
private com.google.protobuf.Any typedConfig_
-
typedConfigBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> typedConfigBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public TypedExtensionConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.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.GeneratedMessage.Builder<TypedExtensionConfig.Builder>
-
getDefaultInstanceForType
public TypedExtensionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TypedExtensionConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TypedExtensionConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(TypedExtensionConfig result)
-
mergeFrom
public TypedExtensionConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TypedExtensionConfig.Builder>
-
mergeFrom
public TypedExtensionConfig.Builder mergeFrom(TypedExtensionConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TypedExtensionConfig.Builder>
-
mergeFrom
public TypedExtensionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TypedExtensionConfig.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The name of an extension. This is not used to select the extension, instead it serves the role of an opaque identifier.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceTypedExtensionConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of an extension. This is not used to select the extension, instead it serves the role of an opaque identifier.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceTypedExtensionConfigOrBuilder- Returns:
- The bytes for name.
-
setName
public TypedExtensionConfig.Builder setName(java.lang.String value)
The name of an extension. This is not used to select the extension, instead it serves the role of an opaque identifier.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TypedExtensionConfig.Builder clearName()
The name of an extension. This is not used to select the extension, instead it serves the role of an opaque identifier.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public TypedExtensionConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of an extension. This is not used to select the extension, instead it serves the role of an opaque identifier.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTypedConfig
public boolean hasTypedConfig()
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }- Specified by:
hasTypedConfigin interfaceTypedExtensionConfigOrBuilder- Returns:
- Whether the typedConfig field is set.
-
getTypedConfig
public com.google.protobuf.Any getTypedConfig()
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }- Specified by:
getTypedConfigin interfaceTypedExtensionConfigOrBuilder- Returns:
- The typedConfig.
-
setTypedConfig
public TypedExtensionConfig.Builder setTypedConfig(com.google.protobuf.Any value)
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
-
setTypedConfig
public TypedExtensionConfig.Builder setTypedConfig(com.google.protobuf.Any.Builder builderForValue)
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
-
mergeTypedConfig
public TypedExtensionConfig.Builder mergeTypedConfig(com.google.protobuf.Any value)
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
-
clearTypedConfig
public TypedExtensionConfig.Builder clearTypedConfig()
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
-
getTypedConfigBuilder
public com.google.protobuf.Any.Builder getTypedConfigBuilder()
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
-
getTypedConfigOrBuilder
public com.google.protobuf.AnyOrBuilder getTypedConfigOrBuilder()
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }- Specified by:
getTypedConfigOrBuilderin interfaceTypedExtensionConfigOrBuilder
-
getTypedConfigFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> getTypedConfigFieldBuilder()
The typed config for the extension. The type URL will be used to identify the extension. In the case that the type URL is *xds.type.v3.TypedStruct* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type URL of *TypedStruct* will be utilized. See the :ref:`extension configuration overview <config_overview_extension_configuration>` for further details.
.google.protobuf.Any typed_config = 2 [(.validate.rules) = { ... }
-
-