Class ConnectAgentResource.Builder (1.11.0)

public static final class ConnectAgentResource.Builder extends GeneratedMessageV3.Builder<ConnectAgentResource.Builder> implements ConnectAgentResourceOrBuilder

ConnectAgentResource represents a Kubernetes resource manifest for Connect Agent deployment.

Protobuf type google.cloud.gkehub.v1alpha2.ConnectAgentResource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectAgentResource build()
Returns
TypeDescription
ConnectAgentResource

buildPartial()

public ConnectAgentResource buildPartial()
Returns
TypeDescription
ConnectAgentResource

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearManifest()

public ConnectAgentResource.Builder clearManifest()

YAML manifest of the resource.

string manifest = 2;

Returns
TypeDescription
ConnectAgentResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public ConnectAgentResource.Builder clearType()

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Returns
TypeDescription
ConnectAgentResource.Builder

clone()

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

getDefaultInstanceForType()

public ConnectAgentResource getDefaultInstanceForType()
Returns
TypeDescription
ConnectAgentResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getManifest()

public String getManifest()

YAML manifest of the resource.

string manifest = 2;

Returns
TypeDescription
String

The manifest.

getManifestBytes()

public ByteString getManifestBytes()

YAML manifest of the resource.

string manifest = 2;

Returns
TypeDescription
ByteString

The bytes for manifest.

getType()

public TypeMeta getType()

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Returns
TypeDescription
TypeMeta

The type.

getTypeBuilder()

public TypeMeta.Builder getTypeBuilder()

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Returns
TypeDescription
TypeMeta.Builder

getTypeOrBuilder()

public TypeMetaOrBuilder getTypeOrBuilder()

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Returns
TypeDescription
TypeMetaOrBuilder

hasType()

public boolean hasType()

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Returns
TypeDescription
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConnectAgentResource other)

public ConnectAgentResource.Builder mergeFrom(ConnectAgentResource other)
Parameter
NameDescription
otherConnectAgentResource
Returns
TypeDescription
ConnectAgentResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeType(TypeMeta value)

public ConnectAgentResource.Builder mergeType(TypeMeta value)

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Parameter
NameDescription
valueTypeMeta
Returns
TypeDescription
ConnectAgentResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setManifest(String value)

public ConnectAgentResource.Builder setManifest(String value)

YAML manifest of the resource.

string manifest = 2;

Parameter
NameDescription
valueString

The manifest to set.

Returns
TypeDescription
ConnectAgentResource.Builder

This builder for chaining.

setManifestBytes(ByteString value)

public ConnectAgentResource.Builder setManifestBytes(ByteString value)

YAML manifest of the resource.

string manifest = 2;

Parameter
NameDescription
valueByteString

The bytes for manifest to set.

Returns
TypeDescription
ConnectAgentResource.Builder

This builder for chaining.

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

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

setType(TypeMeta value)

public ConnectAgentResource.Builder setType(TypeMeta value)

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Parameter
NameDescription
valueTypeMeta
Returns
TypeDescription
ConnectAgentResource.Builder

setType(TypeMeta.Builder builderForValue)

public ConnectAgentResource.Builder setType(TypeMeta.Builder builderForValue)

Kubernetes type of the resource.

.google.cloud.gkehub.v1alpha2.TypeMeta type = 1;

Parameter
NameDescription
builderForValueTypeMeta.Builder
Returns
TypeDescription
ConnectAgentResource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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