Class CreateGrpcRouteRequest.Builder (0.5.0)

public static final class CreateGrpcRouteRequest.Builder extends GeneratedMessageV3.Builder<CreateGrpcRouteRequest.Builder> implements CreateGrpcRouteRequestOrBuilder

Request used by the CreateGrpcRoute method.

Protobuf type google.cloud.networkservices.v1.CreateGrpcRouteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateGrpcRouteRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

build()

public CreateGrpcRouteRequest build()
Returns
Type Description
CreateGrpcRouteRequest

buildPartial()

public CreateGrpcRouteRequest buildPartial()
Returns
Type Description
CreateGrpcRouteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateGrpcRouteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

clearGrpcRoute()

public CreateGrpcRouteRequest.Builder clearGrpcRoute()

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGrpcRouteRequest.Builder

clearGrpcRouteId()

public CreateGrpcRouteRequest.Builder clearGrpcRouteId()

Required. Short name of the GrpcRoute resource to be created.

string grpc_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGrpcRouteRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateGrpcRouteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

clearParent()

public CreateGrpcRouteRequest.Builder clearParent()

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
CreateGrpcRouteRequest.Builder

This builder for chaining.

clone()

public CreateGrpcRouteRequest.Builder clone()
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateGrpcRouteRequest getDefaultInstanceForType()
Returns
Type Description
CreateGrpcRouteRequest

getDescriptorForType()

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

getGrpcRoute()

public GrpcRoute getGrpcRoute()

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute

The grpcRoute.

getGrpcRouteBuilder()

public GrpcRoute.Builder getGrpcRouteBuilder()

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.Builder

getGrpcRouteId()

public String getGrpcRouteId()

Required. Short name of the GrpcRoute resource to be created.

string grpc_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The grpcRouteId.

getGrpcRouteIdBytes()

public ByteString getGrpcRouteIdBytes()

Required. Short name of the GrpcRoute resource to be created.

string grpc_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for grpcRouteId.

getGrpcRouteOrBuilder()

public GrpcRouteOrBuilder getGrpcRouteOrBuilder()

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRouteOrBuilder

getParent()

public String getParent()

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
ByteString

The bytes for parent.

hasGrpcRoute()

public boolean hasGrpcRoute()

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the grpcRoute field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGrpcRouteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGrpcRoute(GrpcRoute value)

public CreateGrpcRouteRequest.Builder mergeGrpcRoute(GrpcRoute value)

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GrpcRoute
Returns
Type Description
CreateGrpcRouteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateGrpcRouteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateGrpcRouteRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

setGrpcRoute(GrpcRoute value)

public CreateGrpcRouteRequest.Builder setGrpcRoute(GrpcRoute value)

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GrpcRoute
Returns
Type Description
CreateGrpcRouteRequest.Builder

setGrpcRoute(GrpcRoute.Builder builderForValue)

public CreateGrpcRouteRequest.Builder setGrpcRoute(GrpcRoute.Builder builderForValue)

Required. GrpcRoute resource to be created.

.google.cloud.networkservices.v1.GrpcRoute grpc_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GrpcRoute.Builder
Returns
Type Description
CreateGrpcRouteRequest.Builder

setGrpcRouteId(String value)

public CreateGrpcRouteRequest.Builder setGrpcRouteId(String value)

Required. Short name of the GrpcRoute resource to be created.

string grpc_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The grpcRouteId to set.

Returns
Type Description
CreateGrpcRouteRequest.Builder

This builder for chaining.

setGrpcRouteIdBytes(ByteString value)

public CreateGrpcRouteRequest.Builder setGrpcRouteIdBytes(ByteString value)

Required. Short name of the GrpcRoute resource to be created.

string grpc_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for grpcRouteId to set.

Returns
Type Description
CreateGrpcRouteRequest.Builder

This builder for chaining.

setParent(String value)

public CreateGrpcRouteRequest.Builder setParent(String value)

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateGrpcRouteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateGrpcRouteRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateGrpcRouteRequest.Builder

This builder for chaining.

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

public CreateGrpcRouteRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateGrpcRouteRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateGrpcRouteRequest.Builder
Overrides