Class PartnerPermissions.Builder (0.5.0)

public static final class PartnerPermissions.Builder extends GeneratedMessageV3.Builder<PartnerPermissions.Builder> implements PartnerPermissionsOrBuilder

The permissions granted to the partner for a workload

Protobuf type google.cloud.cloudcontrolspartner.v1.PartnerPermissions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPartnerPermissions(Iterable<? extends PartnerPermissions.Permission> values)

public PartnerPermissions.Builder addAllPartnerPermissions(Iterable<? extends PartnerPermissions.Permission> values)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission>

The partnerPermissions to add.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

addAllPartnerPermissionsValue(Iterable<Integer> values)

public PartnerPermissions.Builder addAllPartnerPermissionsValue(Iterable<Integer> values)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for partnerPermissions to add.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

addPartnerPermissions(PartnerPermissions.Permission value)

public PartnerPermissions.Builder addPartnerPermissions(PartnerPermissions.Permission value)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameter
NameDescription
valuePartnerPermissions.Permission

The partnerPermissions to add.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

addPartnerPermissionsValue(int value)

public PartnerPermissions.Builder addPartnerPermissionsValue(int value)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for partnerPermissions to add.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PartnerPermissions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

build()

public PartnerPermissions build()
Returns
TypeDescription
PartnerPermissions

buildPartial()

public PartnerPermissions buildPartial()
Returns
TypeDescription
PartnerPermissions

clear()

public PartnerPermissions.Builder clear()
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PartnerPermissions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

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
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PartnerPermissions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

clearPartnerPermissions()

public PartnerPermissions.Builder clearPartnerPermissions()

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

clone()

public PartnerPermissions.Builder clone()
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

getDefaultInstanceForType()

public PartnerPermissions getDefaultInstanceForType()
Returns
TypeDescription
PartnerPermissions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getPartnerPermissions(int index)

public PartnerPermissions.Permission getPartnerPermissions(int index)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
PartnerPermissions.Permission

The partnerPermissions at the given index.

getPartnerPermissionsCount()

public int getPartnerPermissionsCount()

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Returns
TypeDescription
int

The count of partnerPermissions.

getPartnerPermissionsList()

public List<PartnerPermissions.Permission> getPartnerPermissionsList()

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Returns
TypeDescription
List<Permission>

A list containing the partnerPermissions.

getPartnerPermissionsValue(int index)

public int getPartnerPermissionsValue(int index)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of partnerPermissions at the given index.

getPartnerPermissionsValueList()

public List<Integer> getPartnerPermissionsValueList()

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for partnerPermissions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PartnerPermissions other)

public PartnerPermissions.Builder mergeFrom(PartnerPermissions other)
Parameter
NameDescription
otherPartnerPermissions
Returns
TypeDescription
PartnerPermissions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PartnerPermissions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartnerPermissions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PartnerPermissions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartnerPermissions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PartnerPermissions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PartnerPermissions.Builder setNameBytes(ByteString value)

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

setPartnerPermissions(int index, PartnerPermissions.Permission value)

public PartnerPermissions.Builder setPartnerPermissions(int index, PartnerPermissions.Permission value)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valuePartnerPermissions.Permission

The partnerPermissions to set.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

setPartnerPermissionsValue(int index, int value)

public PartnerPermissions.Builder setPartnerPermissionsValue(int index, int value)

The partner permissions granted for the workload

repeated .google.cloud.cloudcontrolspartner.v1.PartnerPermissions.Permission partner_permissions = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for partnerPermissions to set.

Returns
TypeDescription
PartnerPermissions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PartnerPermissions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PartnerPermissions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PartnerPermissions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PartnerPermissions.Builder
Overrides