Class ResourcePoliciesScopedList.Builder (1.55.0)

public static final class ResourcePoliciesScopedList.Builder extends GeneratedMessageV3.Builder<ResourcePoliciesScopedList.Builder> implements ResourcePoliciesScopedListOrBuilder

Protobuf type google.cloud.compute.v1.ResourcePoliciesScopedList

Static Methods

getDescriptor()

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

Methods

addAllResourcePolicies(Iterable<? extends ResourcePolicy> values)

public ResourcePoliciesScopedList.Builder addAllResourcePolicies(Iterable<? extends ResourcePolicy> values)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourcePolicies(ResourcePolicy value)

public ResourcePoliciesScopedList.Builder addResourcePolicies(ResourcePolicy value)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
value ResourcePolicy
Returns
Type Description
ResourcePoliciesScopedList.Builder

addResourcePolicies(ResourcePolicy.Builder builderForValue)

public ResourcePoliciesScopedList.Builder addResourcePolicies(ResourcePolicy.Builder builderForValue)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
builderForValue ResourcePolicy.Builder
Returns
Type Description
ResourcePoliciesScopedList.Builder

addResourcePolicies(int index, ResourcePolicy value)

public ResourcePoliciesScopedList.Builder addResourcePolicies(int index, ResourcePolicy value)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameters
Name Description
index int
value ResourcePolicy
Returns
Type Description
ResourcePoliciesScopedList.Builder

addResourcePolicies(int index, ResourcePolicy.Builder builderForValue)

public ResourcePoliciesScopedList.Builder addResourcePolicies(int index, ResourcePolicy.Builder builderForValue)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameters
Name Description
index int
builderForValue ResourcePolicy.Builder
Returns
Type Description
ResourcePoliciesScopedList.Builder

addResourcePoliciesBuilder()

public ResourcePolicy.Builder addResourcePoliciesBuilder()

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Returns
Type Description
ResourcePolicy.Builder

addResourcePoliciesBuilder(int index)

public ResourcePolicy.Builder addResourcePoliciesBuilder(int index)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicy.Builder

build()

public ResourcePoliciesScopedList build()
Returns
Type Description
ResourcePoliciesScopedList

buildPartial()

public ResourcePoliciesScopedList buildPartial()
Returns
Type Description
ResourcePoliciesScopedList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourcePolicies()

public ResourcePoliciesScopedList.Builder clearResourcePolicies()

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Returns
Type Description
ResourcePoliciesScopedList.Builder

clearWarning()

public ResourcePoliciesScopedList.Builder clearWarning()

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
ResourcePoliciesScopedList.Builder

clone()

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

getDefaultInstanceForType()

public ResourcePoliciesScopedList getDefaultInstanceForType()
Returns
Type Description
ResourcePoliciesScopedList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResourcePolicies(int index)

public ResourcePolicy getResourcePolicies(int index)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicy

getResourcePoliciesBuilder(int index)

public ResourcePolicy.Builder getResourcePoliciesBuilder(int index)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicy.Builder

getResourcePoliciesBuilderList()

public List<ResourcePolicy.Builder> getResourcePoliciesBuilderList()

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Returns
Type Description
List<Builder>

getResourcePoliciesCount()

public int getResourcePoliciesCount()

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Returns
Type Description
int

getResourcePoliciesList()

public List<ResourcePolicy> getResourcePoliciesList()

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Returns
Type Description
List<ResourcePolicy>

getResourcePoliciesOrBuilder(int index)

public ResourcePolicyOrBuilder getResourcePoliciesOrBuilder(int index)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
index int
Returns
Type Description
ResourcePolicyOrBuilder

getResourcePoliciesOrBuilderList()

public List<? extends ResourcePolicyOrBuilder> getResourcePoliciesOrBuilderList()

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

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

getWarning()

public Warning getWarning()

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
Warning

The warning.

getWarningBuilder()

public Warning.Builder getWarningBuilder()

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
Warning.Builder

getWarningOrBuilder()

public WarningOrBuilder getWarningOrBuilder()

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
WarningOrBuilder

hasWarning()

public boolean hasWarning()

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
boolean

Whether the warning field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourcePoliciesScopedList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWarning(Warning value)

public ResourcePoliciesScopedList.Builder mergeWarning(Warning value)

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
Name Description
value Warning
Returns
Type Description
ResourcePoliciesScopedList.Builder

removeResourcePolicies(int index)

public ResourcePoliciesScopedList.Builder removeResourcePolicies(int index)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameter
Name Description
index int
Returns
Type Description
ResourcePoliciesScopedList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ResourcePoliciesScopedList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourcePoliciesScopedList.Builder
Overrides

setResourcePolicies(int index, ResourcePolicy value)

public ResourcePoliciesScopedList.Builder setResourcePolicies(int index, ResourcePolicy value)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameters
Name Description
index int
value ResourcePolicy
Returns
Type Description
ResourcePoliciesScopedList.Builder

setResourcePolicies(int index, ResourcePolicy.Builder builderForValue)

public ResourcePoliciesScopedList.Builder setResourcePolicies(int index, ResourcePolicy.Builder builderForValue)

A list of resourcePolicies contained in this scope.

repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385;

Parameters
Name Description
index int
builderForValue ResourcePolicy.Builder
Returns
Type Description
ResourcePoliciesScopedList.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarning(Warning value)

public ResourcePoliciesScopedList.Builder setWarning(Warning value)

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
Name Description
value Warning
Returns
Type Description
ResourcePoliciesScopedList.Builder

setWarning(Warning.Builder builderForValue)

public ResourcePoliciesScopedList.Builder setWarning(Warning.Builder builderForValue)

Informational warning which replaces the list of resourcePolicies when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
Name Description
builderForValue Warning.Builder
Returns
Type Description
ResourcePoliciesScopedList.Builder