Class UpdateSubnetRequest.Builder (0.3.0)

public static final class UpdateSubnetRequest.Builder extends GeneratedMessageV3.Builder<UpdateSubnetRequest.Builder> implements UpdateSubnetRequestOrBuilder

Message for updating a Subnet

Protobuf type google.cloud.edgenetwork.v1.UpdateSubnetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSubnetRequest build()
Returns
TypeDescription
UpdateSubnetRequest

buildPartial()

public UpdateSubnetRequest buildPartial()
Returns
TypeDescription
UpdateSubnetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSubnetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateSubnetRequest.Builder
Overrides

clearRequestId()

public UpdateSubnetRequest.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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateSubnetRequest.Builder

This builder for chaining.

clearSubnet()

public UpdateSubnetRequest.Builder clearSubnet()

Required. The resource being updated

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

Returns
TypeDescription
UpdateSubnetRequest.Builder

clearUpdateMask()

public UpdateSubnetRequest.Builder clearUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateSubnetRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSubnetRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSubnetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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 = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

getSubnet()

public Subnet getSubnet()

Required. The resource being updated

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

Returns
TypeDescription
Subnet

The subnet.

getSubnetBuilder()

public Subnet.Builder getSubnetBuilder()

Required. The resource being updated

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

Returns
TypeDescription
Subnet.Builder

getSubnetOrBuilder()

public SubnetOrBuilder getSubnetOrBuilder()

Required. The resource being updated

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

Returns
TypeDescription
SubnetOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

hasSubnet()

public boolean hasSubnet()

Required. The resource being updated

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

Returns
TypeDescription
boolean

Whether the subnet field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSubnetRequest other)

public UpdateSubnetRequest.Builder mergeFrom(UpdateSubnetRequest other)
Parameter
NameDescription
otherUpdateSubnetRequest
Returns
TypeDescription
UpdateSubnetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateSubnetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateSubnetRequest.Builder
Overrides

mergeSubnet(Subnet value)

public UpdateSubnetRequest.Builder mergeSubnet(Subnet value)

Required. The resource being updated

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

Parameter
NameDescription
valueSubnet
Returns
TypeDescription
UpdateSubnetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSubnetRequest.Builder mergeUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSubnetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateSubnetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateSubnetRequest.Builder
Overrides

setRequestId(String value)

public UpdateSubnetRequest.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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
UpdateSubnetRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public UpdateSubnetRequest.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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
UpdateSubnetRequest.Builder

This builder for chaining.

setSubnet(Subnet value)

public UpdateSubnetRequest.Builder setSubnet(Subnet value)

Required. The resource being updated

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

Parameter
NameDescription
valueSubnet
Returns
TypeDescription
UpdateSubnetRequest.Builder

setSubnet(Subnet.Builder builderForValue)

public UpdateSubnetRequest.Builder setSubnet(Subnet.Builder builderForValue)

Required. The resource being updated

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

Parameter
NameDescription
builderForValueSubnet.Builder
Returns
TypeDescription
UpdateSubnetRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSubnetRequest.Builder setUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSubnetRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSubnetRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Field mask is used to specify the fields to be overwritten in the Subnet resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSubnetRequest.Builder