Class GetSessionRequest.Builder (4.37.0)

public static final class GetSessionRequest.Builder extends GeneratedMessageV3.Builder<GetSessionRequest.Builder> implements GetSessionRequestOrBuilder

A request to get the resource representation for a session.

Protobuf type google.cloud.dataproc.v1.GetSessionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSessionRequest build()
Returns
TypeDescription
GetSessionRequest

buildPartial()

public GetSessionRequest buildPartial()
Returns
TypeDescription
GetSessionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetSessionRequest.Builder clearName()

Required. The name of the session to retrieve.

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

Returns
TypeDescription
GetSessionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetSessionRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSessionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the session to retrieve.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the session to retrieve.

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

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(GetSessionRequest other)

public GetSessionRequest.Builder mergeFrom(GetSessionRequest other)
Parameter
NameDescription
otherGetSessionRequest
Returns
TypeDescription
GetSessionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetSessionRequest.Builder setName(String value)

Required. The name of the session to retrieve.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetSessionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSessionRequest.Builder setNameBytes(ByteString value)

Required. The name of the session to retrieve.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetSessionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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