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 Details

    • bitField0_

      private int bitField0_
    • name_

      private Object name_
    • version_

      private 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_
  • 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 class com.google.protobuf.GeneratedMessage.Builder<CollectionEntry.InlineEntry.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • 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<CollectionEntry.InlineEntry.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<CollectionEntry.InlineEntry.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CollectionEntry.InlineEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CollectionEntry.InlineEntry.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<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:
      getName in interface CollectionEntry.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 interface CollectionEntry.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

      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:
      getVersion in interface CollectionEntry.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 interface CollectionEntry.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:
      hasResource in interface CollectionEntry.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 interface CollectionEntry.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 interface CollectionEntry.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;