Class GetEnvironmentRequest.Builder (1.22.0)

public static final class GetEnvironmentRequest.Builder extends GeneratedMessageV3.Builder<GetEnvironmentRequest.Builder> implements GetEnvironmentRequestOrBuilder

Request for getting a notebook environment.

Protobuf type google.cloud.notebooks.v1.GetEnvironmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetEnvironmentRequest build()
Returns
TypeDescription
GetEnvironmentRequest

buildPartial()

public GetEnvironmentRequest buildPartial()
Returns
TypeDescription
GetEnvironmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetEnvironmentRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/environments/{environment_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetEnvironmentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetEnvironmentRequest getDefaultInstanceForType()
Returns
TypeDescription
GetEnvironmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/environments/{environment_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/environments/{environment_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetEnvironmentRequest other)

public GetEnvironmentRequest.Builder mergeFrom(GetEnvironmentRequest other)
Parameter
NameDescription
otherGetEnvironmentRequest
Returns
TypeDescription
GetEnvironmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetEnvironmentRequest.Builder setName(String value)

Required. Format: projects/{project_id}/locations/{location}/environments/{environment_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetEnvironmentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetEnvironmentRequest.Builder setNameBytes(ByteString value)

Required. Format: projects/{project_id}/locations/{location}/environments/{environment_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetEnvironmentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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