Class Spoke.StateReason (1.30.0)

public static final class Spoke.StateReason extends GeneratedMessageV3 implements Spoke.StateReasonOrBuilder

The reason a spoke is inactive.

Protobuf type google.cloud.networkconnectivity.v1.Spoke.StateReason

Static Fields

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

USER_DETAILS_FIELD_NUMBER

public static final int USER_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Spoke.StateReason getDefaultInstance()
Returns
TypeDescription
Spoke.StateReason

getDescriptor()

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

newBuilder()

public static Spoke.StateReason.Builder newBuilder()
Returns
TypeDescription
Spoke.StateReason.Builder

newBuilder(Spoke.StateReason prototype)

public static Spoke.StateReason.Builder newBuilder(Spoke.StateReason prototype)
Parameter
NameDescription
prototypeSpoke.StateReason
Returns
TypeDescription
Spoke.StateReason.Builder

parseDelimitedFrom(InputStream input)

public static Spoke.StateReason parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Spoke.StateReason
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Spoke.StateReason parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Spoke.StateReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Spoke.StateReason parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Spoke.StateReason
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Spoke.StateReason parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Spoke.StateReason
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Spoke.StateReason parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Spoke.StateReason
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Spoke.StateReason> parser()
Returns
TypeDescription
Parser<StateReason>

Methods

equals(Object obj)

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

getCode()

public Spoke.StateReason.Code getCode()

The code associated with this reason.

.google.cloud.networkconnectivity.v1.Spoke.StateReason.Code code = 1;

Returns
TypeDescription
Spoke.StateReason.Code

The code.

getCodeValue()

public int getCodeValue()

The code associated with this reason.

.google.cloud.networkconnectivity.v1.Spoke.StateReason.Code code = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public Spoke.StateReason getDefaultInstanceForType()
Returns
TypeDescription
Spoke.StateReason

getMessage()

public String getMessage()

Human-readable details about this reason.

string message = 2;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Human-readable details about this reason.

string message = 2;

Returns
TypeDescription
ByteString

The bytes for message.

getParserForType()

public Parser<Spoke.StateReason> getParserForType()
Returns
TypeDescription
Parser<StateReason>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUserDetails()

public String getUserDetails()

Additional information provided by the user in the RejectSpoke call.

string user_details = 3;

Returns
TypeDescription
String

The userDetails.

getUserDetailsBytes()

public ByteString getUserDetailsBytes()

Additional information provided by the user in the RejectSpoke call.

string user_details = 3;

Returns
TypeDescription
ByteString

The bytes for userDetails.

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 Spoke.StateReason.Builder newBuilderForType()
Returns
TypeDescription
Spoke.StateReason.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Spoke.StateReason.Builder toBuilder()
Returns
TypeDescription
Spoke.StateReason.Builder

writeTo(CodedOutputStream output)

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