Class ConnectAgent (1.12.0)

public final class ConnectAgent extends GeneratedMessageV3 implements ConnectAgentOrBuilder

The information required from end users to use GKE Connect.

Protobuf type google.cloud.gkehub.v1beta1.ConnectAgent

Static Fields

NAMESPACE_FIELD_NUMBER

public static final int NAMESPACE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROXY_FIELD_NUMBER

public static final int PROXY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConnectAgent getDefaultInstance()
Returns
TypeDescription
ConnectAgent

getDescriptor()

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

newBuilder()

public static ConnectAgent.Builder newBuilder()
Returns
TypeDescription
ConnectAgent.Builder

newBuilder(ConnectAgent prototype)

public static ConnectAgent.Builder newBuilder(ConnectAgent prototype)
Parameter
NameDescription
prototypeConnectAgent
Returns
TypeDescription
ConnectAgent.Builder

parseDelimitedFrom(InputStream input)

public static ConnectAgent parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectAgent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConnectAgent parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConnectAgent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConnectAgent parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConnectAgent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConnectAgent parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectAgent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConnectAgent parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectAgent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConnectAgent parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConnectAgent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectAgent
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConnectAgent> parser()
Returns
TypeDescription
Parser<ConnectAgent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ConnectAgent getDefaultInstanceForType()
Returns
TypeDescription
ConnectAgent

getName() (deprecated)

public String getName()

Deprecated. google.cloud.gkehub.v1beta1.ConnectAgent.name is deprecated. See google/cloud/gkehub/v1beta1/membership.proto;l=773

Do not set.

string name = 1 [deprecated = true];

Returns
TypeDescription
String

The name.

getNameBytes() (deprecated)

public ByteString getNameBytes()

Deprecated. google.cloud.gkehub.v1beta1.ConnectAgent.name is deprecated. See google/cloud/gkehub/v1beta1/membership.proto;l=773

Do not set.

string name = 1 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for name.

getNamespace()

public String getNamespace()

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for namespace.

getParserForType()

public Parser<ConnectAgent> getParserForType()
Returns
TypeDescription
Parser<ConnectAgent>
Overrides

getProxy()

public ByteString getProxy()

Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form http(s)://{proxy_address}, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.

bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The proxy.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConnectAgent.Builder newBuilderForType()
Returns
TypeDescription
ConnectAgent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConnectAgent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConnectAgent.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConnectAgent.Builder toBuilder()
Returns
TypeDescription
ConnectAgent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException