Class GetServerRequest.Builder (0.4.0)

public static final class GetServerRequest.Builder extends GeneratedMessage.Builder<GetServerRequest.Builder> implements GetServerRequestOrBuilder

Message for getting a Server

Protobuf type google.cloud.ftp.v1.GetServerRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetServerRequest build()
Returns
Type Description
GetServerRequest

buildPartial()

public GetServerRequest buildPartial()
Returns
Type Description
GetServerRequest

clear()

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

clearName()

public GetServerRequest.Builder clearName()

Required. Name of the resource

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

Returns
Type Description
GetServerRequest.Builder

This builder for chaining.

clearView()

public GetServerRequest.Builder clearView()

Optional. The view of the Server resource to return.

.google.cloud.ftp.v1.ServerView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetServerRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetServerRequest getDefaultInstanceForType()
Returns
Type Description
GetServerRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the resource

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the resource

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

Returns
Type Description
ByteString

The bytes for name.

getView()

public ServerView getView()

Optional. The view of the Server resource to return.

.google.cloud.ftp.v1.ServerView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServerView

The view.

getViewValue()

public int getViewValue()

Optional. The view of the Server resource to return.

.google.cloud.ftp.v1.ServerView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetServerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetServerRequest.Builder setName(String value)

Required. Name of the resource

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetServerRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetServerRequest.Builder setNameBytes(ByteString value)

Required. Name of the resource

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetServerRequest.Builder

This builder for chaining.

setView(ServerView value)

public GetServerRequest.Builder setView(ServerView value)

Optional. The view of the Server resource to return.

.google.cloud.ftp.v1.ServerView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ServerView

The view to set.

Returns
Type Description
GetServerRequest.Builder

This builder for chaining.

setViewValue(int value)

public GetServerRequest.Builder setViewValue(int value)

Optional. The view of the Server resource to return.

.google.cloud.ftp.v1.ServerView view = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for view to set.

Returns
Type Description
GetServerRequest.Builder

This builder for chaining.