Class GetServiceAttachmentRequest.Builder (1.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetServiceAttachmentRequest build()
Returns
TypeDescription
GetServiceAttachmentRequest

buildPartial()

public GetServiceAttachmentRequest buildPartial()
Returns
TypeDescription
GetServiceAttachmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetServiceAttachmentRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GetServiceAttachmentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetServiceAttachmentRequest getDefaultInstanceForType()
Returns
TypeDescription
GetServiceAttachmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProject()

public String getProject()

Project ID for this request.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region of this request.

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

Returns
TypeDescription
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
TypeDescription
String

The serviceAttachment.

getServiceAttachmentBytes()

public ByteString getServiceAttachmentBytes()

Name of the ServiceAttachment resource to return.

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

Returns
TypeDescription
ByteString

The bytes for serviceAttachment.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetServiceAttachmentRequest other)

public GetServiceAttachmentRequest.Builder mergeFrom(GetServiceAttachmentRequest other)
Parameter
NameDescription
otherGetServiceAttachmentRequest
Returns
TypeDescription
GetServiceAttachmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetServiceAttachmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The project to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceAttachment to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceAttachment to set.

Returns
TypeDescription
GetServiceAttachmentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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