Class CreateGatewayAdvertisedRouteRequest.Builder (1.87.0)

public static final class CreateGatewayAdvertisedRouteRequest.Builder extends GeneratedMessage.Builder<CreateGatewayAdvertisedRouteRequest.Builder> implements CreateGatewayAdvertisedRouteRequestOrBuilder

The request for HubService.CreateGatewayAdvertisedRoute.

Protobuf type google.cloud.networkconnectivity.v1beta.CreateGatewayAdvertisedRouteRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateGatewayAdvertisedRouteRequest build()
Returns
Type Description
CreateGatewayAdvertisedRouteRequest

buildPartial()

public CreateGatewayAdvertisedRouteRequest buildPartial()
Returns
Type Description
CreateGatewayAdvertisedRouteRequest

clear()

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

clearGatewayAdvertisedRoute()

public CreateGatewayAdvertisedRouteRequest.Builder clearGatewayAdvertisedRoute()

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

clearGatewayAdvertisedRouteId()

public CreateGatewayAdvertisedRouteRequest.Builder clearGatewayAdvertisedRouteId()

Required. Unique id for the route to create.

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

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

clearParent()

public CreateGatewayAdvertisedRouteRequest.Builder clearParent()

Required. The parent resource.

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

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

clearRequestId()

public CreateGatewayAdvertisedRouteRequest.Builder clearRequestId()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments.

The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateGatewayAdvertisedRouteRequest getDefaultInstanceForType()
Returns
Type Description
CreateGatewayAdvertisedRouteRequest

getDescriptorForType()

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

getGatewayAdvertisedRoute()

public GatewayAdvertisedRoute getGatewayAdvertisedRoute()

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GatewayAdvertisedRoute

The gatewayAdvertisedRoute.

getGatewayAdvertisedRouteBuilder()

public GatewayAdvertisedRoute.Builder getGatewayAdvertisedRouteBuilder()

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GatewayAdvertisedRoute.Builder

getGatewayAdvertisedRouteId()

public String getGatewayAdvertisedRouteId()

Required. Unique id for the route to create.

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

Returns
Type Description
String

The gatewayAdvertisedRouteId.

getGatewayAdvertisedRouteIdBytes()

public ByteString getGatewayAdvertisedRouteIdBytes()

Required. Unique id for the route to create.

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

Returns
Type Description
ByteString

The bytes for gatewayAdvertisedRouteId.

getGatewayAdvertisedRouteOrBuilder()

public GatewayAdvertisedRouteOrBuilder getGatewayAdvertisedRouteOrBuilder()

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GatewayAdvertisedRouteOrBuilder

getParent()

public String getParent()

Required. The parent resource.

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.

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

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments.

The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments.

The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasGatewayAdvertisedRoute()

public boolean hasGatewayAdvertisedRoute()

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gatewayAdvertisedRoute field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGatewayAdvertisedRouteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGatewayAdvertisedRoute(GatewayAdvertisedRoute value)

public CreateGatewayAdvertisedRouteRequest.Builder mergeGatewayAdvertisedRoute(GatewayAdvertisedRoute value)

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GatewayAdvertisedRoute
Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

setGatewayAdvertisedRoute(GatewayAdvertisedRoute value)

public CreateGatewayAdvertisedRouteRequest.Builder setGatewayAdvertisedRoute(GatewayAdvertisedRoute value)

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GatewayAdvertisedRoute
Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

setGatewayAdvertisedRoute(GatewayAdvertisedRoute.Builder builderForValue)

public CreateGatewayAdvertisedRouteRequest.Builder setGatewayAdvertisedRoute(GatewayAdvertisedRoute.Builder builderForValue)

Required. Initial values for the new gateway advertised route.

.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute gateway_advertised_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GatewayAdvertisedRoute.Builder
Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

setGatewayAdvertisedRouteId(String value)

public CreateGatewayAdvertisedRouteRequest.Builder setGatewayAdvertisedRouteId(String value)

Required. Unique id for the route to create.

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

Parameter
Name Description
value String

The gatewayAdvertisedRouteId to set.

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

setGatewayAdvertisedRouteIdBytes(ByteString value)

public CreateGatewayAdvertisedRouteRequest.Builder setGatewayAdvertisedRouteIdBytes(ByteString value)

Required. Unique id for the route to create.

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

Parameter
Name Description
value ByteString

The bytes for gatewayAdvertisedRouteId to set.

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

setParent(String value)

public CreateGatewayAdvertisedRouteRequest.Builder setParent(String value)

Required. The parent resource.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateGatewayAdvertisedRouteRequest.Builder setParentBytes(ByteString value)

Required. The parent resource.

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
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

setRequestId(String value)

public CreateGatewayAdvertisedRouteRequest.Builder setRequestId(String value)

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments.

The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateGatewayAdvertisedRouteRequest.Builder setRequestIdBytes(ByteString value)

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments.

The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateGatewayAdvertisedRouteRequest.Builder

This builder for chaining.