Class CreateInternalRangeRequest.Builder (1.82.0)

public static final class CreateInternalRangeRequest.Builder extends GeneratedMessage.Builder<CreateInternalRangeRequest.Builder> implements CreateInternalRangeRequestOrBuilder

Request for InternalRangeService.CreateInternalRange

Protobuf type google.cloud.networkconnectivity.v1.CreateInternalRangeRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateInternalRangeRequest build()
Returns
Type Description
CreateInternalRangeRequest

buildPartial()

public CreateInternalRangeRequest buildPartial()
Returns
Type Description
CreateInternalRangeRequest

clear()

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

clearInternalRange()

public CreateInternalRangeRequest.Builder clearInternalRange()

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateInternalRangeRequest.Builder

clearInternalRangeId()

public CreateInternalRangeRequest.Builder clearInternalRangeId()

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/internalRanges/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string internal_range_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

clearParent()

public CreateInternalRangeRequest.Builder clearParent()

Required. The parent resource's name of the internal range.

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

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

clearRequestId()

public CreateInternalRangeRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

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 if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally 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];

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateInternalRangeRequest getDefaultInstanceForType()
Returns
Type Description
CreateInternalRangeRequest

getDescriptorForType()

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

getInternalRange()

public InternalRange getInternalRange()

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InternalRange

The internalRange.

getInternalRangeBuilder()

public InternalRange.Builder getInternalRangeBuilder()

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InternalRange.Builder

getInternalRangeId()

public String getInternalRangeId()

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/internalRanges/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string internal_range_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The internalRangeId.

getInternalRangeIdBytes()

public ByteString getInternalRangeIdBytes()

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/internalRanges/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string internal_range_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for internalRangeId.

getInternalRangeOrBuilder()

public InternalRangeOrBuilder getInternalRangeOrBuilder()

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InternalRangeOrBuilder

getParent()

public String getParent()

Required. The parent resource's name of the internal range.

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's name of the internal range.

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. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

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 if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally 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];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

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 if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally 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];

Returns
Type Description
ByteString

The bytes for requestId.

hasInternalRange()

public boolean hasInternalRange()

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the internalRange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateInternalRangeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInternalRange(InternalRange value)

public CreateInternalRangeRequest.Builder mergeInternalRange(InternalRange value)

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InternalRange
Returns
Type Description
CreateInternalRangeRequest.Builder

setInternalRange(InternalRange value)

public CreateInternalRangeRequest.Builder setInternalRange(InternalRange value)

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InternalRange
Returns
Type Description
CreateInternalRangeRequest.Builder

setInternalRange(InternalRange.Builder builderForValue)

public CreateInternalRangeRequest.Builder setInternalRange(InternalRange.Builder builderForValue)

Required. Initial values for a new internal range

.google.cloud.networkconnectivity.v1.InternalRange internal_range = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue InternalRange.Builder
Returns
Type Description
CreateInternalRangeRequest.Builder

setInternalRangeId(String value)

public CreateInternalRangeRequest.Builder setInternalRangeId(String value)

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/internalRanges/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string internal_range_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The internalRangeId to set.

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

setInternalRangeIdBytes(ByteString value)

public CreateInternalRangeRequest.Builder setInternalRangeIdBytes(ByteString value)

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/internalRanges/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string internal_range_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for internalRangeId to set.

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

setParent(String value)

public CreateInternalRangeRequest.Builder setParent(String value)

Required. The parent resource's name of the internal range.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateInternalRangeRequest.Builder setParentBytes(ByteString value)

Required. The parent resource's name of the internal range.

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

This builder for chaining.

setRequestId(String value)

public CreateInternalRangeRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

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 if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally 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];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateInternalRangeRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

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 if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally 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];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateInternalRangeRequest.Builder

This builder for chaining.