Class ServiceReference.Builder (0.4.0)

public static final class ServiceReference.Builder extends GeneratedMessageV3.Builder<ServiceReference.Builder> implements ServiceReferenceOrBuilder

Reference to an underlying networking resource that can comprise a Service.

Protobuf type google.cloud.apphub.v1.ServiceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceReference build()
Returns
TypeDescription
ServiceReference

buildPartial()

public ServiceReference buildPartial()
Returns
TypeDescription
ServiceReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public ServiceReference.Builder clearUri()

Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ServiceReference.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceReference getDefaultInstanceForType()
Returns
TypeDescription
ServiceReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUri()

public String getUri()

Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceReference other)

public ServiceReference.Builder mergeFrom(ServiceReference other)
Parameter
NameDescription
otherServiceReference
Returns
TypeDescription
ServiceReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public ServiceReference.Builder setUri(String value)

Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
ServiceReference.Builder

This builder for chaining.

setUriBytes(ByteString value)

public ServiceReference.Builder setUriBytes(ByteString value)

Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).

string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
ServiceReference.Builder

This builder for chaining.