Class GlobalOrganizationSetPolicyRequest.Builder (1.49.0)

public static final class GlobalOrganizationSetPolicyRequest.Builder extends GeneratedMessageV3.Builder<GlobalOrganizationSetPolicyRequest.Builder> implements GlobalOrganizationSetPolicyRequestOrBuilder

Protobuf type google.cloud.compute.v1.GlobalOrganizationSetPolicyRequest

Static Methods

getDescriptor()

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

Methods

addAllBindings(Iterable<? extends Binding> values)

public GlobalOrganizationSetPolicyRequest.Builder addAllBindings(Iterable<? extends Binding> values)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.Binding>
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

addBindings(Binding value)

public GlobalOrganizationSetPolicyRequest.Builder addBindings(Binding value)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
valueBinding
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

addBindings(Binding.Builder builderForValue)

public GlobalOrganizationSetPolicyRequest.Builder addBindings(Binding.Builder builderForValue)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
builderForValueBinding.Builder
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

addBindings(int index, Binding value)

public GlobalOrganizationSetPolicyRequest.Builder addBindings(int index, Binding value)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameters
NameDescription
indexint
valueBinding
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

addBindings(int index, Binding.Builder builderForValue)

public GlobalOrganizationSetPolicyRequest.Builder addBindings(int index, Binding.Builder builderForValue)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameters
NameDescription
indexint
builderForValueBinding.Builder
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

addBindingsBuilder()

public Binding.Builder addBindingsBuilder()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Returns
TypeDescription
Binding.Builder

addBindingsBuilder(int index)

public Binding.Builder addBindingsBuilder(int index)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
indexint
Returns
TypeDescription
Binding.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GlobalOrganizationSetPolicyRequest build()
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest

buildPartial()

public GlobalOrganizationSetPolicyRequest buildPartial()
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest

clear()

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

clearBindings()

public GlobalOrganizationSetPolicyRequest.Builder clearBindings()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

clearEtag()

public GlobalOrganizationSetPolicyRequest.Builder clearEtag()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

optional string etag = 3123477;

Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public GlobalOrganizationSetPolicyRequest.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;

Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

clone()

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

getBindings(int index)

public Binding getBindings(int index)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
indexint
Returns
TypeDescription
Binding

getBindingsBuilder(int index)

public Binding.Builder getBindingsBuilder(int index)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
indexint
Returns
TypeDescription
Binding.Builder

getBindingsBuilderList()

public List<Binding.Builder> getBindingsBuilderList()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Returns
TypeDescription
List<Builder>

getBindingsCount()

public int getBindingsCount()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Returns
TypeDescription
int

getBindingsList()

public List<Binding> getBindingsList()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Returns
TypeDescription
List<Binding>

getBindingsOrBuilder(int index)

public BindingOrBuilder getBindingsOrBuilder(int index)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
indexint
Returns
TypeDescription
BindingOrBuilder

getBindingsOrBuilderList()

public List<? extends BindingOrBuilder> getBindingsOrBuilderList()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.BindingOrBuilder>

getDefaultInstanceForType()

public GlobalOrganizationSetPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

optional string etag = 3123477;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

optional string etag = 3123477;

Returns
TypeDescription
ByteString

The bytes for etag.

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;

Returns
TypeDescription
Policy

The policy.

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;

Returns
TypeDescription
Policy.Builder

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;

Returns
TypeDescription
PolicyOrBuilder

hasEtag()

public boolean hasEtag()

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

optional string etag = 3123477;

Returns
TypeDescription
boolean

Whether the etag field is set.

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;

Returns
TypeDescription
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GlobalOrganizationSetPolicyRequest other)

public GlobalOrganizationSetPolicyRequest.Builder mergeFrom(GlobalOrganizationSetPolicyRequest other)
Parameter
NameDescription
otherGlobalOrganizationSetPolicyRequest
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicy(Policy value)

public GlobalOrganizationSetPolicyRequest.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;

Parameter
NameDescription
valuePolicy
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBindings(int index)

public GlobalOrganizationSetPolicyRequest.Builder removeBindings(int index)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameter
NameDescription
indexint
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

setBindings(int index, Binding value)

public GlobalOrganizationSetPolicyRequest.Builder setBindings(int index, Binding value)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameters
NameDescription
indexint
valueBinding
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

setBindings(int index, Binding.Builder builderForValue)

public GlobalOrganizationSetPolicyRequest.Builder setBindings(int index, Binding.Builder builderForValue)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.

repeated .google.cloud.compute.v1.Binding bindings = 403251854;

Parameters
NameDescription
indexint
builderForValueBinding.Builder
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

setEtag(String value)

public GlobalOrganizationSetPolicyRequest.Builder setEtag(String value)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

optional string etag = 3123477;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public GlobalOrganizationSetPolicyRequest.Builder setEtagBytes(ByteString value)

Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.

optional string etag = 3123477;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(Policy value)

public GlobalOrganizationSetPolicyRequest.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;

Parameter
NameDescription
valuePolicy
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

setPolicy(Policy.Builder builderForValue)

public GlobalOrganizationSetPolicyRequest.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;

Parameter
NameDescription
builderForValuePolicy.Builder
Returns
TypeDescription
GlobalOrganizationSetPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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