Class GetAuthzPolicyRequest.Builder (0.94.0)

public static final class GetAuthzPolicyRequest.Builder extends GeneratedMessage.Builder<GetAuthzPolicyRequest.Builder> implements GetAuthzPolicyRequestOrBuilder

Message for getting a AuthzPolicy resource.

Protobuf type google.cloud.networksecurity.v1.GetAuthzPolicyRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetAuthzPolicyRequest build()
Returns
Type Description
GetAuthzPolicyRequest

buildPartial()

public GetAuthzPolicyRequest buildPartial()
Returns
Type Description
GetAuthzPolicyRequest

clear()

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

clearName()

public GetAuthzPolicyRequest.Builder clearName()

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

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

Returns
Type Description
GetAuthzPolicyRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetAuthzPolicyRequest getDefaultInstanceForType()
Returns
Type Description
GetAuthzPolicyRequest

getDescriptorForType()

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

getName()

public String getName()

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetAuthzPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetAuthzPolicyRequest.Builder setName(String value)

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetAuthzPolicyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetAuthzPolicyRequest.Builder setNameBytes(ByteString value)

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetAuthzPolicyRequest.Builder

This builder for chaining.