Class CreateSubnetRequest.Builder (0.13.0)

public static final class CreateSubnetRequest.Builder extends GeneratedMessageV3.Builder<CreateSubnetRequest.Builder> implements CreateSubnetRequestOrBuilder

Message for creating a Subnet

Protobuf type google.cloud.edgenetwork.v1.CreateSubnetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSubnetRequest build()
Returns
Type Description
CreateSubnetRequest

buildPartial()

public CreateSubnetRequest buildPartial()
Returns
Type Description
CreateSubnetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateSubnetRequest.Builder clearParent()

Required. Value for parent.

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

Returns
Type Description
CreateSubnetRequest.Builder

This builder for chaining.

clearRequestId()

public CreateSubnetRequest.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
CreateSubnetRequest.Builder

This builder for chaining.

clearSubnet()

public CreateSubnetRequest.Builder clearSubnet()

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSubnetRequest.Builder

clearSubnetId()

public CreateSubnetRequest.Builder clearSubnetId()

Required. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC

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

Returns
Type Description
CreateSubnetRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateSubnetRequest getDefaultInstanceForType()
Returns
Type Description
CreateSubnetRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Value for parent.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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.

getSubnet()

public Subnet getSubnet()

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subnet

The subnet.

getSubnetBuilder()

public Subnet.Builder getSubnetBuilder()

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subnet.Builder

getSubnetId()

public String getSubnetId()

Required. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC

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

Returns
Type Description
String

The subnetId.

getSubnetIdBytes()

public ByteString getSubnetIdBytes()

Required. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC

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

Returns
Type Description
ByteString

The bytes for subnetId.

getSubnetOrBuilder()

public SubnetOrBuilder getSubnetOrBuilder()

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubnetOrBuilder

hasSubnet()

public boolean hasSubnet()

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the subnet field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSubnetRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubnet(Subnet value)

public CreateSubnetRequest.Builder mergeSubnet(Subnet value)

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subnet
Returns
Type Description
CreateSubnetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateSubnetRequest.Builder setParent(String value)

Required. Value for parent.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSubnetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSubnetRequest.Builder setParentBytes(ByteString value)

Required. Value for parent.

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

This builder for chaining.

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

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

setRequestId(String value)

public CreateSubnetRequest.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
CreateSubnetRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateSubnetRequest.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
CreateSubnetRequest.Builder

This builder for chaining.

setSubnet(Subnet value)

public CreateSubnetRequest.Builder setSubnet(Subnet value)

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subnet
Returns
Type Description
CreateSubnetRequest.Builder

setSubnet(Subnet.Builder builderForValue)

public CreateSubnetRequest.Builder setSubnet(Subnet.Builder builderForValue)

Required. The resource being created

.google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Subnet.Builder
Returns
Type Description
CreateSubnetRequest.Builder

setSubnetId(String value)

public CreateSubnetRequest.Builder setSubnetId(String value)

Required. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC

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

Parameter
Name Description
value String

The subnetId to set.

Returns
Type Description
CreateSubnetRequest.Builder

This builder for chaining.

setSubnetIdBytes(ByteString value)

public CreateSubnetRequest.Builder setSubnetIdBytes(ByteString value)

Required. Id of the requesting object If auto-generating Id server-side, remove this field and subnet_id from the method_signature of Create RPC

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

Parameter
Name Description
value ByteString

The bytes for subnetId to set.

Returns
Type Description
CreateSubnetRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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