Class CreateMeshRequest.Builder (0.2.0)

public static final class CreateMeshRequest.Builder extends GeneratedMessageV3.Builder<CreateMeshRequest.Builder> implements CreateMeshRequestOrBuilder

Request used by the CreateMesh method.

Protobuf type google.cloud.networkservices.v1.CreateMeshRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMeshRequest build()
Returns
Type Description
CreateMeshRequest

buildPartial()

public CreateMeshRequest buildPartial()
Returns
Type Description
CreateMeshRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMesh()

public CreateMeshRequest.Builder clearMesh()

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMeshRequest.Builder

clearMeshId()

public CreateMeshRequest.Builder clearMeshId()

Required. Short name of the Mesh resource to be created.

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

Returns
Type Description
CreateMeshRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMeshRequest.Builder clearParent()

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

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

Returns
Type Description
CreateMeshRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMeshRequest getDefaultInstanceForType()
Returns
Type Description
CreateMeshRequest

getDescriptorForType()

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

getMesh()

public Mesh getMesh()

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Mesh

The mesh.

getMeshBuilder()

public Mesh.Builder getMeshBuilder()

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Mesh.Builder

getMeshId()

public String getMeshId()

Required. Short name of the Mesh resource to be created.

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

Returns
Type Description
String

The meshId.

getMeshIdBytes()

public ByteString getMeshIdBytes()

Required. Short name of the Mesh resource to be created.

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

Returns
Type Description
ByteString

The bytes for meshId.

getMeshOrBuilder()

public MeshOrBuilder getMeshOrBuilder()

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MeshOrBuilder

getParent()

public String getParent()

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

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 of the Mesh. Must be in the format projects/*/locations/global.

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

Returns
Type Description
ByteString

The bytes for parent.

hasMesh()

public boolean hasMesh()

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the mesh field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMeshRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMesh(Mesh value)

public CreateMeshRequest.Builder mergeMesh(Mesh value)

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Mesh
Returns
Type Description
CreateMeshRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMesh(Mesh value)

public CreateMeshRequest.Builder setMesh(Mesh value)

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Mesh
Returns
Type Description
CreateMeshRequest.Builder

setMesh(Mesh.Builder builderForValue)

public CreateMeshRequest.Builder setMesh(Mesh.Builder builderForValue)

Required. Mesh resource to be created.

.google.cloud.networkservices.v1.Mesh mesh = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Mesh.Builder
Returns
Type Description
CreateMeshRequest.Builder

setMeshId(String value)

public CreateMeshRequest.Builder setMeshId(String value)

Required. Short name of the Mesh resource to be created.

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

Parameter
Name Description
value String

The meshId to set.

Returns
Type Description
CreateMeshRequest.Builder

This builder for chaining.

setMeshIdBytes(ByteString value)

public CreateMeshRequest.Builder setMeshIdBytes(ByteString value)

Required. Short name of the Mesh resource to be created.

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

Parameter
Name Description
value ByteString

The bytes for meshId to set.

Returns
Type Description
CreateMeshRequest.Builder

This builder for chaining.

setParent(String value)

public CreateMeshRequest.Builder setParent(String value)

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMeshRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMeshRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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