Class GetAuthorizationPolicyRequest.Builder (0.26.0)

public static final class GetAuthorizationPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetAuthorizationPolicyRequest.Builder> implements GetAuthorizationPolicyRequestOrBuilder

Request used by the GetAuthorizationPolicy method.

Protobuf type google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetAuthorizationPolicyRequest build()
Returns
TypeDescription
GetAuthorizationPolicyRequest

buildPartial()

public GetAuthorizationPolicyRequest buildPartial()
Returns
TypeDescription
GetAuthorizationPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetAuthorizationPolicyRequest.Builder clearName()

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

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

Returns
TypeDescription
GetAuthorizationPolicyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetAuthorizationPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetAuthorizationPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

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(GetAuthorizationPolicyRequest other)

public GetAuthorizationPolicyRequest.Builder mergeFrom(GetAuthorizationPolicyRequest other)
Parameter
NameDescription
otherGetAuthorizationPolicyRequest
Returns
TypeDescription
GetAuthorizationPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetAuthorizationPolicyRequest.Builder setName(String value)

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetAuthorizationPolicyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetAuthorizationPolicyRequest.Builder setNameBytes(ByteString value)

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetAuthorizationPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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