Class GetServiceAttachmentRequest.Builder (1.64.0)

public static final class GetServiceAttachmentRequest.Builder extends GeneratedMessageV3.Builder<GetServiceAttachmentRequest.Builder> implements GetServiceAttachmentRequestOrBuilder

A request message for ServiceAttachments.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetServiceAttachmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetServiceAttachmentRequest build()
Returns
Type Description
GetServiceAttachmentRequest

buildPartial()

public GetServiceAttachmentRequest buildPartial()
Returns
Type Description
GetServiceAttachmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetServiceAttachmentRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

clearRegion()

public GetServiceAttachmentRequest.Builder clearRegion()

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

clearServiceAttachment()

public GetServiceAttachmentRequest.Builder clearServiceAttachment()

Name of the ServiceAttachment resource to return.

string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetServiceAttachmentRequest getDefaultInstanceForType()
Returns
Type Description
GetServiceAttachmentRequest

getDescriptorForType()

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

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

getRegion()

public String getRegion()

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

getServiceAttachment()

public String getServiceAttachment()

Name of the ServiceAttachment resource to return.

string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The serviceAttachment.

getServiceAttachmentBytes()

public ByteString getServiceAttachmentBytes()

Name of the ServiceAttachment resource to return.

string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for serviceAttachment.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetServiceAttachmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetServiceAttachmentRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetServiceAttachmentRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

setRegion(String value)

public GetServiceAttachmentRequest.Builder setRegion(String value)

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetServiceAttachmentRequest.Builder setRegionBytes(ByteString value)

Name of the region of this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

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

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

setServiceAttachment(String value)

public GetServiceAttachmentRequest.Builder setServiceAttachment(String value)

Name of the ServiceAttachment resource to return.

string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The serviceAttachment to set.

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

setServiceAttachmentBytes(ByteString value)

public GetServiceAttachmentRequest.Builder setServiceAttachmentBytes(ByteString value)

Name of the ServiceAttachment resource to return.

string service_attachment = 338957549 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for serviceAttachment to set.

Returns
Type Description
GetServiceAttachmentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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