Class RegionSetPolicyRequest.Builder

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

public static final class RegionSetPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RegionSetPolicyRequest.Builder> implements RegionSetPolicyRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.RegionSetPolicyRequest
  • 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<RegionSetPolicyRequest.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<RegionSetPolicyRequest.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<RegionSetPolicyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RegionSetPolicyRequest.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<RegionSetPolicyRequest.Builder>
      Throws:
      IOException
    • getBindingsList

      public List<Binding> getBindingsList()
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      Specified by:
      getBindingsList in interface RegionSetPolicyRequestOrBuilder
    • getBindingsCount

      public int getBindingsCount()
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      Specified by:
      getBindingsCount in interface RegionSetPolicyRequestOrBuilder
    • getBindings

      public Binding getBindings(int index)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      Specified by:
      getBindings in interface RegionSetPolicyRequestOrBuilder
    • setBindings

      public RegionSetPolicyRequest.Builder setBindings(int index, Binding value)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • setBindings

      public RegionSetPolicyRequest.Builder setBindings(int index, Binding.Builder builderForValue)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • addBindings

      public RegionSetPolicyRequest.Builder addBindings(Binding value)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • addBindings

      public RegionSetPolicyRequest.Builder addBindings(int index, Binding value)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • addBindings

      public RegionSetPolicyRequest.Builder addBindings(Binding.Builder builderForValue)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • addBindings

      public RegionSetPolicyRequest.Builder addBindings(int index, Binding.Builder builderForValue)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • addAllBindings

      public RegionSetPolicyRequest.Builder addAllBindings(Iterable<? extends Binding> values)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • clearBindings

      public RegionSetPolicyRequest.Builder clearBindings()
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • removeBindings

      public RegionSetPolicyRequest.Builder removeBindings(int index)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • getBindingsBuilder

      public Binding.Builder getBindingsBuilder(int index)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • getBindingsOrBuilder

      public BindingOrBuilder getBindingsOrBuilder(int index)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      Specified by:
      getBindingsOrBuilder in interface RegionSetPolicyRequestOrBuilder
    • getBindingsOrBuilderList

      public List<? extends BindingOrBuilder> getBindingsOrBuilderList()
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
      Specified by:
      getBindingsOrBuilderList in interface RegionSetPolicyRequestOrBuilder
    • addBindingsBuilder

      public Binding.Builder addBindingsBuilder()
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • addBindingsBuilder

      public Binding.Builder addBindingsBuilder(int index)
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • getBindingsBuilderList

      public List<Binding.Builder> getBindingsBuilderList()
       Flatten Policy to create a backwacd compatible wire-format.
       Deprecated. Use 'policy' to specify bindings.
       
      repeated .google.cloud.compute.v1.Binding bindings = 403251854;
    • hasEtag

      public boolean hasEtag()
       Flatten Policy to create a backward compatible wire-format.
       Deprecated. Use 'policy' to specify the etag.
       
      optional string etag = 3123477;
      Specified by:
      hasEtag in interface RegionSetPolicyRequestOrBuilder
      Returns:
      Whether the etag field is set.
    • getEtag

      public String getEtag()
       Flatten Policy to create a backward compatible wire-format.
       Deprecated. Use 'policy' to specify the etag.
       
      optional string etag = 3123477;
      Specified by:
      getEtag in interface RegionSetPolicyRequestOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Flatten Policy to create a backward compatible wire-format.
       Deprecated. Use 'policy' to specify the etag.
       
      optional string etag = 3123477;
      Specified by:
      getEtagBytes in interface RegionSetPolicyRequestOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public RegionSetPolicyRequest.Builder setEtag(String value)
       Flatten Policy to create a backward compatible wire-format.
       Deprecated. Use 'policy' to specify the etag.
       
      optional string etag = 3123477;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public RegionSetPolicyRequest.Builder clearEtag()
       Flatten Policy to create a backward compatible wire-format.
       Deprecated. Use 'policy' to specify the etag.
       
      optional string etag = 3123477;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public RegionSetPolicyRequest.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Flatten Policy to create a backward compatible wire-format.
       Deprecated. Use 'policy' to specify the etag.
       
      optional string etag = 3123477;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • hasPolicy

      public boolean hasPolicy()
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
      Specified by:
      hasPolicy in interface RegionSetPolicyRequestOrBuilder
      Returns:
      Whether the policy field is set.
    • getPolicy

      public Policy getPolicy()
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
      Specified by:
      getPolicy in interface RegionSetPolicyRequestOrBuilder
      Returns:
      The policy.
    • setPolicy

      public RegionSetPolicyRequest.Builder setPolicy(Policy value)
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
    • setPolicy

      public RegionSetPolicyRequest.Builder setPolicy(Policy.Builder builderForValue)
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
    • mergePolicy

      public RegionSetPolicyRequest.Builder mergePolicy(Policy value)
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
    • clearPolicy

      public RegionSetPolicyRequest.Builder clearPolicy()
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
    • getPolicyBuilder

      public Policy.Builder getPolicyBuilder()
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
    • getPolicyOrBuilder

      public PolicyOrBuilder getPolicyOrBuilder()
       REQUIRED: The complete policy to be applied to the 'resource'. The size of
       the policy is limited to a few 10s of KB. An empty policy is in general a
       valid policy but certain services (like Projects) might reject them.
       
      optional .google.cloud.compute.v1.Policy policy = 91071794;
      Specified by:
      getPolicyOrBuilder in interface RegionSetPolicyRequestOrBuilder