Class ResourceProperties.Builder (2.45.0)

public static final class ResourceProperties.Builder extends GeneratedMessageV3.Builder<ResourceProperties.Builder> implements ResourcePropertiesOrBuilder

The properties associated with the resource of the request.

Protobuf type google.cloud.accessapproval.v1.ResourceProperties

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceProperties build()
Returns
Type Description
ResourceProperties

buildPartial()

public ResourceProperties buildPartial()
Returns
Type Description
ResourceProperties

clear()

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

clearExcludesDescendants()

public ResourceProperties.Builder clearExcludesDescendants()

Whether an approval will exclude the descendants of the resource being requested.

bool excludes_descendants = 1;

Returns
Type Description
ResourceProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ResourceProperties getDefaultInstanceForType()
Returns
Type Description
ResourceProperties

getDescriptorForType()

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

getExcludesDescendants()

public boolean getExcludesDescendants()

Whether an approval will exclude the descendants of the resource being requested.

bool excludes_descendants = 1;

Returns
Type Description
boolean

The excludesDescendants.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExcludesDescendants(boolean value)

public ResourceProperties.Builder setExcludesDescendants(boolean value)

Whether an approval will exclude the descendants of the resource being requested.

bool excludes_descendants = 1;

Parameter
Name Description
value boolean

The excludesDescendants to set.

Returns
Type Description
ResourceProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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