Class EgressResponse.Builder

  • All Implemented Interfaces:
    EgressResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    EgressResponse

    public static final class EgressResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
    implements EgressResponseOrBuilder
     gRPC response payload for tether.
     
    Protobuf type google.cloud.apigeeconnect.v1.EgressResponse
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • clear

        public EgressResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • getDefaultInstanceForType

        public EgressResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public EgressResponse build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public EgressResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public EgressResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • setField

        public EgressResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • clearField

        public EgressResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • clearOneof

        public EgressResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • setRepeatedField

        public EgressResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • addRepeatedField

        public EgressResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • mergeFrom

        public EgressResponse.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EgressResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • mergeFrom

        public EgressResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EgressResponse.Builder>
        Throws:
        IOException
      • getId

        public String getId()
         Unique identifier for the response. Matches the EgressRequest's id.
         
        string id = 1;
        Specified by:
        getId in interface EgressResponseOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Unique identifier for the response. Matches the EgressRequest's id.
         
        string id = 1;
        Specified by:
        getIdBytes in interface EgressResponseOrBuilder
        Returns:
        The bytes for id.
      • setId

        public EgressResponse.Builder setId​(String value)
         Unique identifier for the response. Matches the EgressRequest's id.
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public EgressResponse.Builder clearId()
         Unique identifier for the response. Matches the EgressRequest's id.
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public EgressResponse.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Unique identifier for the response. Matches the EgressRequest's id.
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • hasHttpResponse

        public boolean hasHttpResponse()
         HttpResponse.
         
        .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;
        Specified by:
        hasHttpResponse in interface EgressResponseOrBuilder
        Returns:
        Whether the httpResponse field is set.
      • mergeHttpResponse

        public EgressResponse.Builder mergeHttpResponse​(HttpResponse value)
         HttpResponse.
         
        .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;
      • clearHttpResponse

        public EgressResponse.Builder clearHttpResponse()
         HttpResponse.
         
        .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;
      • getHttpResponseBuilder

        public HttpResponse.Builder getHttpResponseBuilder()
         HttpResponse.
         
        .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2;
      • hasStatus

        public boolean hasStatus()
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
        Specified by:
        hasStatus in interface EgressResponseOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public com.google.rpc.Status getStatus()
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
        Specified by:
        getStatus in interface EgressResponseOrBuilder
        Returns:
        The status.
      • setStatus

        public EgressResponse.Builder setStatus​(com.google.rpc.Status value)
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
      • setStatus

        public EgressResponse.Builder setStatus​(com.google.rpc.Status.Builder builderForValue)
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
      • mergeStatus

        public EgressResponse.Builder mergeStatus​(com.google.rpc.Status value)
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
      • clearStatus

        public EgressResponse.Builder clearStatus()
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
      • getStatusBuilder

        public com.google.rpc.Status.Builder getStatusBuilder()
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
      • getStatusOrBuilder

        public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
         Errors from application when handling the http request.
         
        .google.rpc.Status status = 3;
        Specified by:
        getStatusOrBuilder in interface EgressResponseOrBuilder
      • getProject

        public String getProject()
         GCP Project.
         Format: `projects/{project_number}`.
         
        string project = 4;
        Specified by:
        getProject in interface EgressResponseOrBuilder
        Returns:
        The project.
      • getProjectBytes

        public com.google.protobuf.ByteString getProjectBytes()
         GCP Project.
         Format: `projects/{project_number}`.
         
        string project = 4;
        Specified by:
        getProjectBytes in interface EgressResponseOrBuilder
        Returns:
        The bytes for project.
      • setProject

        public EgressResponse.Builder setProject​(String value)
         GCP Project.
         Format: `projects/{project_number}`.
         
        string project = 4;
        Parameters:
        value - The project to set.
        Returns:
        This builder for chaining.
      • clearProject

        public EgressResponse.Builder clearProject()
         GCP Project.
         Format: `projects/{project_number}`.
         
        string project = 4;
        Returns:
        This builder for chaining.
      • setProjectBytes

        public EgressResponse.Builder setProjectBytes​(com.google.protobuf.ByteString value)
         GCP Project.
         Format: `projects/{project_number}`.
         
        string project = 4;
        Parameters:
        value - The bytes for project to set.
        Returns:
        This builder for chaining.
      • getTraceId

        public String getTraceId()
         Unique identifier for clients to trace their request/response. Matches the
         EgressRequest's trace id
         
        string trace_id = 5;
        Specified by:
        getTraceId in interface EgressResponseOrBuilder
        Returns:
        The traceId.
      • getTraceIdBytes

        public com.google.protobuf.ByteString getTraceIdBytes()
         Unique identifier for clients to trace their request/response. Matches the
         EgressRequest's trace id
         
        string trace_id = 5;
        Specified by:
        getTraceIdBytes in interface EgressResponseOrBuilder
        Returns:
        The bytes for traceId.
      • setTraceId

        public EgressResponse.Builder setTraceId​(String value)
         Unique identifier for clients to trace their request/response. Matches the
         EgressRequest's trace id
         
        string trace_id = 5;
        Parameters:
        value - The traceId to set.
        Returns:
        This builder for chaining.
      • clearTraceId

        public EgressResponse.Builder clearTraceId()
         Unique identifier for clients to trace their request/response. Matches the
         EgressRequest's trace id
         
        string trace_id = 5;
        Returns:
        This builder for chaining.
      • setTraceIdBytes

        public EgressResponse.Builder setTraceIdBytes​(com.google.protobuf.ByteString value)
         Unique identifier for clients to trace their request/response. Matches the
         EgressRequest's trace id
         
        string trace_id = 5;
        Parameters:
        value - The bytes for traceId to set.
        Returns:
        This builder for chaining.
      • getEndpointValue

        public int getEndpointValue()
         Tether Endpoint.
         
        .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;
        Specified by:
        getEndpointValue in interface EgressResponseOrBuilder
        Returns:
        The enum numeric value on the wire for endpoint.
      • setEndpointValue

        public EgressResponse.Builder setEndpointValue​(int value)
         Tether Endpoint.
         
        .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;
        Parameters:
        value - The enum numeric value on the wire for endpoint to set.
        Returns:
        This builder for chaining.
      • setEndpoint

        public EgressResponse.Builder setEndpoint​(TetherEndpoint value)
         Tether Endpoint.
         
        .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;
        Parameters:
        value - The endpoint to set.
        Returns:
        This builder for chaining.
      • clearEndpoint

        public EgressResponse.Builder clearEndpoint()
         Tether Endpoint.
         
        .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6;
        Returns:
        This builder for chaining.
      • getName

        public String getName()
         Name is the full resource path of endpoint.
         Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
         
        string name = 7;
        Specified by:
        getName in interface EgressResponseOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name is the full resource path of endpoint.
         Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
         
        string name = 7;
        Specified by:
        getNameBytes in interface EgressResponseOrBuilder
        Returns:
        The bytes for name.
      • setName

        public EgressResponse.Builder setName​(String value)
         Name is the full resource path of endpoint.
         Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
         
        string name = 7;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public EgressResponse.Builder clearName()
         Name is the full resource path of endpoint.
         Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
         
        string name = 7;
        Returns:
        This builder for chaining.
      • setNameBytes

        public EgressResponse.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name is the full resource path of endpoint.
         Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
         
        string name = 7;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final EgressResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>
      • mergeUnknownFields

        public final EgressResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EgressResponse.Builder>