Class PartnerPermissions.Builder (0.10.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.v1beta.PartnerPermissions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions.Permission>

The partnerPermissions to add.

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameter
Name Description
value PartnerPermissions.Permission

The partnerPermissions to add.

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameter
Name Description
value int

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

Returns
Type Description
PartnerPermissions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PartnerPermissions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PartnerPermissions.Builder
Overrides

build()

public PartnerPermissions build()
Returns
Type Description
PartnerPermissions

buildPartial()

public PartnerPermissions buildPartial()
Returns
Type Description
PartnerPermissions

clear()

public PartnerPermissions.Builder clear()
Returns
Type Description
PartnerPermissions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PartnerPermissions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
PartnerPermissions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PartnerPermissions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PartnerPermissions.Builder
Overrides

clearPartnerPermissions()

public PartnerPermissions.Builder clearPartnerPermissions()

The partner permissions granted for the workload

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

Returns
Type Description
PartnerPermissions.Builder

This builder for chaining.

clone()

public PartnerPermissions.Builder clone()
Returns
Type Description
PartnerPermissions.Builder
Overrides

getDefaultInstanceForType()

public PartnerPermissions getDefaultInstanceForType()
Returns
Type Description
PartnerPermissions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
PartnerPermissions.Permission

The partnerPermissions at the given index.

getPartnerPermissionsCount()

public int getPartnerPermissionsCount()

The partner permissions granted for the workload

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

Returns
Type Description
int

The count of partnerPermissions.

getPartnerPermissionsList()

public List<PartnerPermissions.Permission> getPartnerPermissionsList()

The partner permissions granted for the workload

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

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Returns
Type Description
List<Integer>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PartnerPermissions other)

public PartnerPermissions.Builder mergeFrom(PartnerPermissions other)
Parameter
Name Description
other PartnerPermissions
Returns
Type Description
PartnerPermissions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PartnerPermissions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartnerPermissions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PartnerPermissions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PartnerPermissions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartnerPermissions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PartnerPermissions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PartnerPermissions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameters
Name Description
index int

The index to set the value at.

value PartnerPermissions.Permission

The partnerPermissions to set.

Returns
Type Description
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.v1beta.PartnerPermissions.Permission partner_permissions = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PartnerPermissions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PartnerPermissions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PartnerPermissions.Builder
Overrides