Class PartnerPermissions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PartnerPermissions.Builder>
com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Builder
All Implemented Interfaces:
PartnerPermissionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PartnerPermissions

public static final class PartnerPermissions.Builder extends com.google.protobuf.GeneratedMessage.Builder<PartnerPermissions.Builder> implements PartnerPermissionsOrBuilder
 The permissions granted to the partner for a workload
 
Protobuf type google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions
  • 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<PartnerPermissions.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<PartnerPermissions.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<PartnerPermissions.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PartnerPermissions.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<PartnerPermissions.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface PartnerPermissionsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface PartnerPermissionsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PartnerPermissions.Builder setName(String value)
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PartnerPermissions.Builder clearName()
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public PartnerPermissions.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Format:
       `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPartnerPermissionsList

      public List<PartnerPermissions.Permission> getPartnerPermissionsList()
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Specified by:
      getPartnerPermissionsList in interface PartnerPermissionsOrBuilder
      Returns:
      A list containing the partnerPermissions.
    • getPartnerPermissionsCount

      public int getPartnerPermissionsCount()
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Specified by:
      getPartnerPermissionsCount in interface PartnerPermissionsOrBuilder
      Returns:
      The count of partnerPermissions.
    • getPartnerPermissions

      public PartnerPermissions.Permission getPartnerPermissions(int index)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Specified by:
      getPartnerPermissions in interface PartnerPermissionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The partnerPermissions at the given index.
    • setPartnerPermissions

      public PartnerPermissions.Builder setPartnerPermissions(int index, PartnerPermissions.Permission value)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Parameters:
      index - The index to set the value at.
      value - The partnerPermissions to set.
      Returns:
      This builder for chaining.
    • addPartnerPermissions

      public PartnerPermissions.Builder addPartnerPermissions(PartnerPermissions.Permission value)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Parameters:
      value - The partnerPermissions to add.
      Returns:
      This builder for chaining.
    • addAllPartnerPermissions

      public PartnerPermissions.Builder addAllPartnerPermissions(Iterable<? extends PartnerPermissions.Permission> values)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Parameters:
      values - The partnerPermissions to add.
      Returns:
      This builder for chaining.
    • clearPartnerPermissions

      public PartnerPermissions.Builder clearPartnerPermissions()
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Returns:
      This builder for chaining.
    • getPartnerPermissionsValueList

      public List<Integer> getPartnerPermissionsValueList()
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Specified by:
      getPartnerPermissionsValueList in interface PartnerPermissionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for partnerPermissions.
    • getPartnerPermissionsValue

      public int getPartnerPermissionsValue(int index)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Specified by:
      getPartnerPermissionsValue in interface PartnerPermissionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of partnerPermissions at the given index.
    • setPartnerPermissionsValue

      public PartnerPermissions.Builder setPartnerPermissionsValue(int index, int value)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for partnerPermissions to set.
      Returns:
      This builder for chaining.
    • addPartnerPermissionsValue

      public PartnerPermissions.Builder addPartnerPermissionsValue(int value)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Parameters:
      value - The enum numeric value on the wire for partnerPermissions to add.
      Returns:
      This builder for chaining.
    • addAllPartnerPermissionsValue

      public PartnerPermissions.Builder addAllPartnerPermissionsValue(Iterable<Integer> values)
       The partner permissions granted for the workload
       
      repeated .google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission partner_permissions = 2;
      Parameters:
      values - The enum numeric values on the wire for partnerPermissions to add.
      Returns:
      This builder for chaining.