Class ResourcePoliciesScopedList.Builder (1.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.ResourcePolicy>
Returns
TypeDescription
ResourcePoliciesScopedList.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourcePoliciesScopedList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResourcePolicy
Returns
TypeDescription
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
NameDescription
builderForValueResourcePolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourcePolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourcePolicy.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourcePolicy.Builder

build()

public ResourcePoliciesScopedList build()
Returns
TypeDescription
ResourcePoliciesScopedList

buildPartial()

public ResourcePoliciesScopedList buildPartial()
Returns
TypeDescription
ResourcePoliciesScopedList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourcePoliciesScopedList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResourcePoliciesScopedList.Builder

clone()

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

getDefaultInstanceForType()

public ResourcePoliciesScopedList getDefaultInstanceForType()
Returns
TypeDescription
ResourcePoliciesScopedList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getResourcePoliciesCount()

public int getResourcePoliciesCount()

A list of resourcePolicies contained in this scope.

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

Returns
TypeDescription
int

getResourcePoliciesList()

public List<ResourcePolicy> getResourcePoliciesList()

A list of resourcePolicies contained in this scope.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the warning field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourcePoliciesScopedList other)

public ResourcePoliciesScopedList.Builder mergeFrom(ResourcePoliciesScopedList other)
Parameter
NameDescription
otherResourcePoliciesScopedList
Returns
TypeDescription
ResourcePoliciesScopedList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePoliciesScopedList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWarning
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourcePoliciesScopedList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ResourcePoliciesScopedList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueResourcePolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourcePolicy.Builder
Returns
TypeDescription
ResourcePoliciesScopedList.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePoliciesScopedList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWarning
Returns
TypeDescription
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
NameDescription
builderForValueWarning.Builder
Returns
TypeDescription
ResourcePoliciesScopedList.Builder