Class GrpcEndpoint.Builder (0.43.0)

public static final class GrpcEndpoint.Builder extends GeneratedMessageV3.Builder<GrpcEndpoint.Builder> implements GrpcEndpointOrBuilder

Specification of the GRPC Endpoint.

Protobuf type google.cloud.networksecurity.v1.GrpcEndpoint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GrpcEndpoint build()
Returns
TypeDescription
GrpcEndpoint

buildPartial()

public GrpcEndpoint buildPartial()
Returns
TypeDescription
GrpcEndpoint

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetUri()

public GrpcEndpoint.Builder clearTargetUri()

Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".

string target_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GrpcEndpoint.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GrpcEndpoint getDefaultInstanceForType()
Returns
TypeDescription
GrpcEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTargetUri()

public String getTargetUri()

Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".

string target_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The targetUri.

getTargetUriBytes()

public ByteString getTargetUriBytes()

Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".

string target_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for targetUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GrpcEndpoint other)

public GrpcEndpoint.Builder mergeFrom(GrpcEndpoint other)
Parameter
NameDescription
otherGrpcEndpoint
Returns
TypeDescription
GrpcEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTargetUri(String value)

public GrpcEndpoint.Builder setTargetUri(String value)

Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".

string target_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The targetUri to set.

Returns
TypeDescription
GrpcEndpoint.Builder

This builder for chaining.

setTargetUriBytes(ByteString value)

public GrpcEndpoint.Builder setTargetUriBytes(ByteString value)

Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".

string target_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for targetUri to set.

Returns
TypeDescription
GrpcEndpoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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