Class Service.GetPolicyRequest.Builder (1.10.0)

public static final class Service.GetPolicyRequest.Builder extends GeneratedMessageV3.Builder<Service.GetPolicyRequest.Builder> implements Service.GetPolicyRequestOrBuilder

Request message for [BinauthzManagementService.GetPolicy][].

Protobuf type google.cloud.binaryauthorization.v1.GetPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Service.GetPolicyRequest build()
Returns
TypeDescription
Service.GetPolicyRequest

buildPartial()

public Service.GetPolicyRequest buildPartial()
Returns
TypeDescription
Service.GetPolicyRequest

clear()

public Service.GetPolicyRequest.Builder clear()
Returns
TypeDescription
Service.GetPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Service.GetPolicyRequest.Builder clearName()

Required. The resource name of the policy to retrieve, in the format projects/*/policy.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Service.GetPolicyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Service.GetPolicyRequest.Builder clone()
Returns
TypeDescription
Service.GetPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public Service.GetPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
Service.GetPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the policy to retrieve, in the format projects/*/policy.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the policy to retrieve, in the format projects/*/policy.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Service.GetPolicyRequest other)

public Service.GetPolicyRequest.Builder mergeFrom(Service.GetPolicyRequest other)
Parameter
NameDescription
otherService.GetPolicyRequest
Returns
TypeDescription
Service.GetPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.GetPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Service.GetPolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Service.GetPolicyRequest.Builder setName(String value)

Required. The resource name of the policy to retrieve, in the format projects/*/policy.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Service.GetPolicyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Service.GetPolicyRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the policy to retrieve, in the format projects/*/policy.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Service.GetPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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