Class CreateSubnetRequest.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSubnetRequest build()
Returns
TypeDescription
CreateSubnetRequest

buildPartial()

public CreateSubnetRequest buildPartial()
Returns
TypeDescription
CreateSubnetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSubnetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateSubnetRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateSubnetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSubnetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Value for parent.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Value for parent.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SubnetOrBuilder

hasSubnet()

public boolean hasSubnet()

Required. The resource being created

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

Returns
TypeDescription
boolean

Whether the subnet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSubnetRequest other)

public CreateSubnetRequest.Builder mergeFrom(CreateSubnetRequest other)
Parameter
NameDescription
otherCreateSubnetRequest
Returns
TypeDescription
CreateSubnetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateSubnetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSubnet
Returns
TypeDescription
CreateSubnetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSubnetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
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
NameDescription
valueSubnet
Returns
TypeDescription
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
NameDescription
builderForValueSubnet.Builder
Returns
TypeDescription
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
NameDescription
valueString

The subnetId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for subnetId to set.

Returns
TypeDescription
CreateSubnetRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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