Class BackendServiceReference.Builder (1.30.0)

public static final class BackendServiceReference.Builder extends GeneratedMessageV3.Builder<BackendServiceReference.Builder> implements BackendServiceReferenceOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackendServiceReference build()
Returns
TypeDescription
BackendServiceReference

buildPartial()

public BackendServiceReference buildPartial()
Returns
TypeDescription
BackendServiceReference

clear()

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

clearBackendService()

public BackendServiceReference.Builder clearBackendService()

optional string backend_service = 306946058;

Returns
TypeDescription
BackendServiceReference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBackendService()

public String getBackendService()

optional string backend_service = 306946058;

Returns
TypeDescription
String

The backendService.

getBackendServiceBytes()

public ByteString getBackendServiceBytes()

optional string backend_service = 306946058;

Returns
TypeDescription
ByteString

The bytes for backendService.

getDefaultInstanceForType()

public BackendServiceReference getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasBackendService()

public boolean hasBackendService()

optional string backend_service = 306946058;

Returns
TypeDescription
boolean

Whether the backendService field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackendServiceReference other)

public BackendServiceReference.Builder mergeFrom(BackendServiceReference other)
Parameter
NameDescription
otherBackendServiceReference
Returns
TypeDescription
BackendServiceReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackendService(String value)

public BackendServiceReference.Builder setBackendService(String value)

optional string backend_service = 306946058;

Parameter
NameDescription
valueString

The backendService to set.

Returns
TypeDescription
BackendServiceReference.Builder

This builder for chaining.

setBackendServiceBytes(ByteString value)

public BackendServiceReference.Builder setBackendServiceBytes(ByteString value)

optional string backend_service = 306946058;

Parameter
NameDescription
valueByteString

The bytes for backendService to set.

Returns
TypeDescription
BackendServiceReference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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