Class CustomTag.Metadata.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CustomTag.MetadataOrBuilder, java.lang.Cloneable
    Enclosing class:
    CustomTag.Metadata

    public static final class CustomTag.Metadata.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
    implements CustomTag.MetadataOrBuilder
     Metadata type custom tag using
     :ref:`MetadataKey <envoy_v3_api_msg_type.metadata.v3.MetadataKey>` to retrieve the protobuf value
     from :ref:`Metadata <envoy_v3_api_msg_config.core.v3.Metadata>`, and populate the tag value with
     `the canonical JSON <https://developers.google.com/protocol-buffers/docs/proto3#json>`_
     representation of it.
     
    Protobuf type envoy.type.tracing.v3.CustomTag.Metadata
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public CustomTag.Metadata.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
      • getDefaultInstanceForType

        public CustomTag.Metadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CustomTag.Metadata build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CustomTag.Metadata buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public CustomTag.Metadata.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CustomTag.Metadata.Builder>
      • mergeFrom

        public CustomTag.Metadata.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomTag.Metadata.Builder>
        Throws:
        java.io.IOException
      • hasKind

        public boolean hasKind()
         Specify what kind of metadata to obtain tag value from.
         
        .envoy.type.metadata.v3.MetadataKind kind = 1;
        Specified by:
        hasKind in interface CustomTag.MetadataOrBuilder
        Returns:
        Whether the kind field is set.
      • clearKind

        public CustomTag.Metadata.Builder clearKind()
         Specify what kind of metadata to obtain tag value from.
         
        .envoy.type.metadata.v3.MetadataKind kind = 1;
      • getKindBuilder

        public MetadataKind.Builder getKindBuilder()
         Specify what kind of metadata to obtain tag value from.
         
        .envoy.type.metadata.v3.MetadataKind kind = 1;
      • hasMetadataKey

        public boolean hasMetadataKey()
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
        Specified by:
        hasMetadataKey in interface CustomTag.MetadataOrBuilder
        Returns:
        Whether the metadataKey field is set.
      • getMetadataKey

        public MetadataKey getMetadataKey()
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
        Specified by:
        getMetadataKey in interface CustomTag.MetadataOrBuilder
        Returns:
        The metadataKey.
      • setMetadataKey

        public CustomTag.Metadata.Builder setMetadataKey​(MetadataKey value)
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      • mergeMetadataKey

        public CustomTag.Metadata.Builder mergeMetadataKey​(MetadataKey value)
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      • clearMetadataKey

        public CustomTag.Metadata.Builder clearMetadataKey()
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      • getMetadataKeyBuilder

        public MetadataKey.Builder getMetadataKeyBuilder()
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      • getMetadataKeyFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<MetadataKey,​MetadataKey.Builder,​MetadataKeyOrBuilder> getMetadataKeyFieldBuilder()
         Metadata key to define the path to retrieve the tag value.
         
        .envoy.type.metadata.v3.MetadataKey metadata_key = 2;
      • getDefaultValue

        public java.lang.String getDefaultValue()
         When no valid metadata is found,
         the tag value would be populated with this default value if specified,
         otherwise no tag would be populated.
         
        string default_value = 3;
        Specified by:
        getDefaultValue in interface CustomTag.MetadataOrBuilder
        Returns:
        The defaultValue.
      • getDefaultValueBytes

        public com.google.protobuf.ByteString getDefaultValueBytes()
         When no valid metadata is found,
         the tag value would be populated with this default value if specified,
         otherwise no tag would be populated.
         
        string default_value = 3;
        Specified by:
        getDefaultValueBytes in interface CustomTag.MetadataOrBuilder
        Returns:
        The bytes for defaultValue.
      • setDefaultValue

        public CustomTag.Metadata.Builder setDefaultValue​(java.lang.String value)
         When no valid metadata is found,
         the tag value would be populated with this default value if specified,
         otherwise no tag would be populated.
         
        string default_value = 3;
        Parameters:
        value - The defaultValue to set.
        Returns:
        This builder for chaining.
      • clearDefaultValue

        public CustomTag.Metadata.Builder clearDefaultValue()
         When no valid metadata is found,
         the tag value would be populated with this default value if specified,
         otherwise no tag would be populated.
         
        string default_value = 3;
        Returns:
        This builder for chaining.
      • setDefaultValueBytes

        public CustomTag.Metadata.Builder setDefaultValueBytes​(com.google.protobuf.ByteString value)
         When no valid metadata is found,
         the tag value would be populated with this default value if specified,
         otherwise no tag would be populated.
         
        string default_value = 3;
        Parameters:
        value - The bytes for defaultValue to set.
        Returns:
        This builder for chaining.