Class ReferenceListScope.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReferenceListScope.Builder>
com.google.cloud.chronicle.v1.ReferenceListScope.Builder
All Implemented Interfaces:
ReferenceListScopeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReferenceListScope

public static final class ReferenceListScope.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReferenceListScope.Builder> implements ReferenceListScopeOrBuilder
 ReferenceListScope specifies the list of scope names of the reference list.
 
Protobuf type google.cloud.chronicle.v1.ReferenceListScope
  • 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<ReferenceListScope.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<ReferenceListScope.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<ReferenceListScope.Builder>
    • getDefaultInstanceForType

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

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

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

      public ReferenceListScope.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<ReferenceListScope.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<ReferenceListScope.Builder>
    • mergeFrom

      public ReferenceListScope.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<ReferenceListScope.Builder>
      Throws:
      IOException
    • getScopeNamesList

      public com.google.protobuf.ProtocolStringList getScopeNamesList()
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getScopeNamesList in interface ReferenceListScopeOrBuilder
      Returns:
      A list containing the scopeNames.
    • getScopeNamesCount

      public int getScopeNamesCount()
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getScopeNamesCount in interface ReferenceListScopeOrBuilder
      Returns:
      The count of scopeNames.
    • getScopeNames

      public String getScopeNames(int index)
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getScopeNames in interface ReferenceListScopeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scopeNames at the given index.
    • getScopeNamesBytes

      public com.google.protobuf.ByteString getScopeNamesBytes(int index)
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getScopeNamesBytes in interface ReferenceListScopeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scopeNames at the given index.
    • setScopeNames

      public ReferenceListScope.Builder setScopeNames(int index, String value)
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The scopeNames to set.
      Returns:
      This builder for chaining.
    • addScopeNames

      public ReferenceListScope.Builder addScopeNames(String value)
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The scopeNames to add.
      Returns:
      This builder for chaining.
    • addAllScopeNames

      public ReferenceListScope.Builder addAllScopeNames(Iterable<String> values)
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The scopeNames to add.
      Returns:
      This builder for chaining.
    • clearScopeNames

      public ReferenceListScope.Builder clearScopeNames()
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addScopeNamesBytes

      public ReferenceListScope.Builder addScopeNamesBytes(com.google.protobuf.ByteString value)
       Optional. The list of scope names of the reference list. The scope names
       should be full resource names and should be of the format:
       `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
       
      repeated string scope_names = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the scopeNames to add.
      Returns:
      This builder for chaining.