Class ResourceLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
com.google.cloud.audit.ResourceLocation.Builder
All Implemented Interfaces:
ResourceLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourceLocation

public static final class ResourceLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder> implements ResourceLocationOrBuilder
 Location information about a resource.
 
Protobuf type google.cloud.audit.ResourceLocation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • clear

      public ResourceLocation.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.GeneratedMessageV3.Builder<ResourceLocation.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.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • getDefaultInstanceForType

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

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

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

      public ResourceLocation.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • setField

      public ResourceLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • clearField

      public ResourceLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • clearOneof

      public ResourceLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • setRepeatedField

      public ResourceLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • addRepeatedField

      public ResourceLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • mergeFrom

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

      public ResourceLocation.Builder mergeFrom(ResourceLocation other)
    • isInitialized

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

      public ResourceLocation.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<ResourceLocation.Builder>
      Throws:
      IOException
    • getCurrentLocationsList

      public com.google.protobuf.ProtocolStringList getCurrentLocationsList()
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Specified by:
      getCurrentLocationsList in interface ResourceLocationOrBuilder
      Returns:
      A list containing the currentLocations.
    • getCurrentLocationsCount

      public int getCurrentLocationsCount()
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Specified by:
      getCurrentLocationsCount in interface ResourceLocationOrBuilder
      Returns:
      The count of currentLocations.
    • getCurrentLocations

      public String getCurrentLocations(int index)
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Specified by:
      getCurrentLocations in interface ResourceLocationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The currentLocations at the given index.
    • getCurrentLocationsBytes

      public com.google.protobuf.ByteString getCurrentLocationsBytes(int index)
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Specified by:
      getCurrentLocationsBytes in interface ResourceLocationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the currentLocations at the given index.
    • setCurrentLocations

      public ResourceLocation.Builder setCurrentLocations(int index, String value)
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Parameters:
      index - The index to set the value at.
      value - The currentLocations to set.
      Returns:
      This builder for chaining.
    • addCurrentLocations

      public ResourceLocation.Builder addCurrentLocations(String value)
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Parameters:
      value - The currentLocations to add.
      Returns:
      This builder for chaining.
    • addAllCurrentLocations

      public ResourceLocation.Builder addAllCurrentLocations(Iterable<String> values)
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Parameters:
      values - The currentLocations to add.
      Returns:
      This builder for chaining.
    • clearCurrentLocations

      public ResourceLocation.Builder clearCurrentLocations()
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Returns:
      This builder for chaining.
    • addCurrentLocationsBytes

      public ResourceLocation.Builder addCurrentLocationsBytes(com.google.protobuf.ByteString value)
       The locations of a resource after the execution of the operation.
       Requests to create or delete a location based resource must populate
       the 'current_locations' field and not the 'original_locations' field.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string current_locations = 1;
      Parameters:
      value - The bytes of the currentLocations to add.
      Returns:
      This builder for chaining.
    • getOriginalLocationsList

      public com.google.protobuf.ProtocolStringList getOriginalLocationsList()
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Specified by:
      getOriginalLocationsList in interface ResourceLocationOrBuilder
      Returns:
      A list containing the originalLocations.
    • getOriginalLocationsCount

      public int getOriginalLocationsCount()
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Specified by:
      getOriginalLocationsCount in interface ResourceLocationOrBuilder
      Returns:
      The count of originalLocations.
    • getOriginalLocations

      public String getOriginalLocations(int index)
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Specified by:
      getOriginalLocations in interface ResourceLocationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The originalLocations at the given index.
    • getOriginalLocationsBytes

      public com.google.protobuf.ByteString getOriginalLocationsBytes(int index)
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Specified by:
      getOriginalLocationsBytes in interface ResourceLocationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the originalLocations at the given index.
    • setOriginalLocations

      public ResourceLocation.Builder setOriginalLocations(int index, String value)
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Parameters:
      index - The index to set the value at.
      value - The originalLocations to set.
      Returns:
      This builder for chaining.
    • addOriginalLocations

      public ResourceLocation.Builder addOriginalLocations(String value)
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Parameters:
      value - The originalLocations to add.
      Returns:
      This builder for chaining.
    • addAllOriginalLocations

      public ResourceLocation.Builder addAllOriginalLocations(Iterable<String> values)
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Parameters:
      values - The originalLocations to add.
      Returns:
      This builder for chaining.
    • clearOriginalLocations

      public ResourceLocation.Builder clearOriginalLocations()
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Returns:
      This builder for chaining.
    • addOriginalLocationsBytes

      public ResourceLocation.Builder addOriginalLocationsBytes(com.google.protobuf.ByteString value)
       The locations of a resource prior to the execution of the operation.
       Requests that mutate the resource's location must populate both the
       'original_locations' as well as the 'current_locations' fields.
       For example:
           "europe-west1-a"
           "us-east1"
           "nam3"
       
      repeated string original_locations = 2;
      Parameters:
      value - The bytes of the originalLocations to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ResourceLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>
    • mergeUnknownFields

      public final ResourceLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceLocation.Builder>