Class ResourceProperties.Builder (2.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceProperties build()
Returns
TypeDescription
ResourceProperties

buildPartial()

public ResourceProperties buildPartial()
Returns
TypeDescription
ResourceProperties

clear()

public ResourceProperties.Builder clear()
Returns
TypeDescription
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
TypeDescription
ResourceProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ResourceProperties getDefaultInstanceForType()
Returns
TypeDescription
ResourceProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExcludesDescendants()

public boolean getExcludesDescendants()

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

bool excludes_descendants = 1;

Returns
TypeDescription
boolean

The excludesDescendants.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceProperties other)

public ResourceProperties.Builder mergeFrom(ResourceProperties other)
Parameter
NameDescription
otherResourceProperties
Returns
TypeDescription
ResourceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The excludesDescendants to set.

Returns
TypeDescription
ResourceProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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