Class SetIamPolicySubnetworkRequest.Builder

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

public static final class SetIamPolicySubnetworkRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SetIamPolicySubnetworkRequest.Builder> implements SetIamPolicySubnetworkRequestOrBuilder
 A request message for Subnetworks.SetIamPolicy. See the method description for details.
 
Protobuf type google.cloud.compute.v1.SetIamPolicySubnetworkRequest
  • 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<SetIamPolicySubnetworkRequest.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<SetIamPolicySubnetworkRequest.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<SetIamPolicySubnetworkRequest.Builder>
    • getDefaultInstanceForType

      public SetIamPolicySubnetworkRequest 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 SetIamPolicySubnetworkRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public SetIamPolicySubnetworkRequest.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<SetIamPolicySubnetworkRequest.Builder>
      Throws:
      IOException
    • getProject

      public String getProject()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProject in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectBytes in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public SetIamPolicySubnetworkRequest.Builder setProject(String value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectBytes

      public SetIamPolicySubnetworkRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       The name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegion in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       The name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegionBytes in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The bytes for region.
    • setRegion

       The name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

       The name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRegionBytes

      public SetIamPolicySubnetworkRequest.Builder setRegionBytes(com.google.protobuf.ByteString value)
       The name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • hasRegionSetPolicyRequestResource

      public boolean hasRegionSetPolicyRequestResource()
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRegionSetPolicyRequestResource in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      Whether the regionSetPolicyRequestResource field is set.
    • getRegionSetPolicyRequestResource

      public RegionSetPolicyRequest getRegionSetPolicyRequestResource()
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegionSetPolicyRequestResource in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The regionSetPolicyRequestResource.
    • setRegionSetPolicyRequestResource

      public SetIamPolicySubnetworkRequest.Builder setRegionSetPolicyRequestResource(RegionSetPolicyRequest value)
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
    • setRegionSetPolicyRequestResource

      public SetIamPolicySubnetworkRequest.Builder setRegionSetPolicyRequestResource(RegionSetPolicyRequest.Builder builderForValue)
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
    • mergeRegionSetPolicyRequestResource

      public SetIamPolicySubnetworkRequest.Builder mergeRegionSetPolicyRequestResource(RegionSetPolicyRequest value)
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
    • clearRegionSetPolicyRequestResource

      public SetIamPolicySubnetworkRequest.Builder clearRegionSetPolicyRequestResource()
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
    • getRegionSetPolicyRequestResourceBuilder

      public RegionSetPolicyRequest.Builder getRegionSetPolicyRequestResourceBuilder()
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
    • getRegionSetPolicyRequestResourceOrBuilder

      public RegionSetPolicyRequestOrBuilder getRegionSetPolicyRequestResourceOrBuilder()
       The body resource for this request
       
      .google.cloud.compute.v1.RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegionSetPolicyRequestResourceOrBuilder in interface SetIamPolicySubnetworkRequestOrBuilder
    • getResource

      public String getResource()
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResource in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceBytes in interface SetIamPolicySubnetworkRequestOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public SetIamPolicySubnetworkRequest.Builder setResource(String value)
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public SetIamPolicySubnetworkRequest.Builder clearResource()
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setResourceBytes

      public SetIamPolicySubnetworkRequest.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Name or id of the resource for this request.
       
      string resource = 195806222 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.