Class ZoneSetPolicyRequest.Builder (1.88.0)

public static final class ZoneSetPolicyRequest.Builder extends GeneratedMessageV3.Builder<ZoneSetPolicyRequest.Builder> implements ZoneSetPolicyRequestOrBuilder

Protobuf type google.cloud.compute.v1.ZoneSetPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBindings(Iterable<? extends Binding> values)

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

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

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.Binding>
Returns
Type Description
ZoneSetPolicyRequest.Builder

addBindings(Binding value)

public ZoneSetPolicyRequest.Builder addBindings(Binding value)

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

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

Parameter
Name Description
value Binding
Returns
Type Description
ZoneSetPolicyRequest.Builder

addBindings(Binding.Builder builderForValue)

public ZoneSetPolicyRequest.Builder addBindings(Binding.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Binding.Builder
Returns
Type Description
ZoneSetPolicyRequest.Builder

addBindings(int index, Binding value)

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

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

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

Parameters
Name Description
index int
value Binding
Returns
Type Description
ZoneSetPolicyRequest.Builder

addBindings(int index, Binding.Builder builderForValue)

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

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

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

Parameters
Name Description
index int
builderForValue Binding.Builder
Returns
Type Description
ZoneSetPolicyRequest.Builder

addBindingsBuilder()

public Binding.Builder addBindingsBuilder()

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

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

Returns
Type Description
Binding.Builder

addBindingsBuilder(int index)

public Binding.Builder addBindingsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
Binding.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ZoneSetPolicyRequest build()
Returns
Type Description
ZoneSetPolicyRequest

buildPartial()

public ZoneSetPolicyRequest buildPartial()
Returns
Type Description
ZoneSetPolicyRequest

clear()

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

clearBindings()

public ZoneSetPolicyRequest.Builder clearBindings()

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

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

Returns
Type Description
ZoneSetPolicyRequest.Builder

clearEtag()

public ZoneSetPolicyRequest.Builder clearEtag()

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

optional string etag = 3123477;

Returns
Type Description
ZoneSetPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ZoneSetPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ZoneSetPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public ZoneSetPolicyRequest.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
Type Description
ZoneSetPolicyRequest.Builder

clone()

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

getBindings(int index)

public Binding getBindings(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
Binding

getBindingsBuilder(int index)

public Binding.Builder getBindingsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
Binding.Builder

getBindingsBuilderList()

public List<Binding.Builder> getBindingsBuilderList()

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

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

Returns
Type Description
List<Builder>

getBindingsCount()

public int getBindingsCount()

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

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

Returns
Type Description
int

getBindingsList()

public List<Binding> getBindingsList()

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

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

Returns
Type Description
List<Binding>

getBindingsOrBuilder(int index)

public BindingOrBuilder getBindingsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BindingOrBuilder

getBindingsOrBuilderList()

public List<? extends BindingOrBuilder> getBindingsOrBuilderList()

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

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

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

getDefaultInstanceForType()

public ZoneSetPolicyRequest getDefaultInstanceForType()
Returns
Type Description
ZoneSetPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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